fixup! gdk: canonicalize RGB destination formats

This commit is contained in:
Daemonratte 2026-09-12 11:31:05 +02:00
commit 15fe135ea0

View file

@ -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);