fixup! gdk: canonicalize RGB destination formats
This commit is contained in:
parent
de63249e04
commit
15fe135ea0
1 changed files with 2 additions and 1 deletions
|
|
@ -3870,7 +3870,8 @@ gdk_rgb_select_conv (GdkRgbInfo *image_info)
|
|||
|
||||
if (image_info->bitmap)
|
||||
conv = gdk_rgb_convert_1;
|
||||
else if (bpp == 16 && depth == 16 && !byterev &&
|
||||
else if (bpp == 16 && depth == 16 &&
|
||||
vtype == GDK_VISUAL_TRUE_COLOR && !byterev &&
|
||||
red_mask == 0xf800 && green_mask == 0x7e0 && blue_mask == 0x1f)
|
||||
{
|
||||
SET_CONV (gdk_rgb_convert_565, GDK_RGB_FORMAT_565);
|
||||
|
|
|
|||
Loading…
Reference in a new issue