mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Support 32-bit color depth in gonk widget backend (bug 767288, r=cjones).
This commit is contained in:
parent
7fa74c4216
commit
5f722cbd78
@ -605,7 +605,13 @@ nsScreenGonk::GetAvailRect(PRInt32 *outLeft, PRInt32 *outTop,
|
|||||||
static uint32_t
|
static uint32_t
|
||||||
ColorDepth()
|
ColorDepth()
|
||||||
{
|
{
|
||||||
return gNativeWindow->getDevice()->format == GGL_PIXEL_FORMAT_RGB_565 ? 16 : 24;
|
switch (gNativeWindow->getDevice()->format) {
|
||||||
|
case GGL_PIXEL_FORMAT_RGB_565:
|
||||||
|
return 16;
|
||||||
|
case GGL_PIXEL_FORMAT_RGBA_8888:
|
||||||
|
return 32;
|
||||||
|
}
|
||||||
|
return 24; // GGL_PIXEL_FORMAT_RGBX_8888
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
Loading…
Reference in New Issue
Block a user