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)
This commit is contained in:
Matthias Clasen 2002-07-25 20:31:08 +00:00
parent 4e84b66628
commit 2db2a27c9e
7 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-07-25 Matthias Clasen <maclas@gmx.de>
* 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)
Thu Jul 25 14:14:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c: When a menubar is up, use F10 to cycle

View File

@ -1,3 +1,9 @@
2002-07-25 Matthias Clasen <maclas@gmx.de>
* 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)
Thu Jul 25 14:14:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c: When a menubar is up, use F10 to cycle

View File

@ -1,3 +1,9 @@
2002-07-25 Matthias Clasen <maclas@gmx.de>
* 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)
Thu Jul 25 14:14:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c: When a menubar is up, use F10 to cycle

View File

@ -1,3 +1,9 @@
2002-07-25 Matthias Clasen <maclas@gmx.de>
* 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)
Thu Jul 25 14:14:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c: When a menubar is up, use F10 to cycle

View File

@ -1,3 +1,9 @@
2002-07-25 Matthias Clasen <maclas@gmx.de>
* 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)
Thu Jul 25 14:14:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c: When a menubar is up, use F10 to cycle

View File

@ -1,3 +1,9 @@
2002-07-25 Matthias Clasen <maclas@gmx.de>
* 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)
Thu Jul 25 14:14:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c: When a menubar is up, use F10 to cycle

View File

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