gdk: support 2-bit StaticColor visuals

This commit is contained in:
Daemonratte 2026-08-04 19:08:54 +02:00
commit b58fc23765

View file

@ -3431,7 +3431,7 @@ gdk_rgb_select_conv (GdkRgbInfo *image_info)
conv = gdk_rgb_convert_gray4_pack;
conv_d = gdk_rgb_convert_gray4_d_pack;
}
else if (bpp == 4 && depth <= 4 && depth >= 3 &&
else if (bpp == 4 && depth <= 4 && depth >= 2 &&
vtype == GDK_VISUAL_STATIC_COLOR)
conv = gdk_rgb_convert_4_pack;