summaryrefslogtreecommitdiff
path: root/gdk/gdkrgb.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-07-25 20:31:08 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-07-25 20:31:08 +0000
commit2db2a27c9e83524ac35aa4c53ecc74843dd9318f (patch)
tree532722fd07eb0f36cb902d57d0f7e35b59dc15d4 /gdk/gdkrgb.c
parent4e84b6662829a84988a50445f0a62954381501b8 (diff)
downloadgdk-pixbuf-2db2a27c9e83524ac35aa4c53ecc74843dd9318f.tar.gz
Use gdk_rgb_convert_4, not gdk_rgb_convert_8 for depth 4, bpp 8,
* gdk/gdkrgb.c (gdk_rgb_select_conv): Use gdk_rgb_convert_4, not gdk_rgb_convert_8 for depth 4, bpp 8, PseudoColor visuals. (#88697)
Diffstat (limited to 'gdk/gdkrgb.c')
-rw-r--r--gdk/gdkrgb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c
index b5ae8587a..56ac88176 100644
--- a/gdk/gdkrgb.c
+++ b/gdk/gdkrgb.c
@@ -2997,6 +2997,7 @@ gdk_rgb_select_conv (GdkRgbInfo *image_info)
}
else if (bpp == 8 &&
depth <= 8 &&
+ depth > 4 &&
(vtype == GDK_VISUAL_PSEUDO_COLOR
#ifdef ENABLE_GRAYSCALE
|| vtype == GDK_VISUAL_GRAYSCALE