]> Pileus Git - ~andy/gtk/commit
Fix some bugs, and introduce a minor feature.
authorTor Lillqvist <tml@iki.fi>
Thu, 4 Apr 2002 20:23:56 +0000 (20:23 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 4 Apr 2002 20:23:56 +0000 (20:23 +0000)
commitabda40ede4b5b1a176f88b6ef59ec8623492eadf
treef53db267b060e65b6b884debc2fbee87702f1538
parentb7333010d03eaee9db0d18112a81ad27041a8dba
Fix some bugs, and introduce a minor feature.

2002-04-04  Tor Lillqvist  <tml@iki.fi>

* gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.

(gdk_rgb_convert_4_pack): New function, for 16-color (4 bits per
pixel) static visuals (fixes #858).

(gdk_rgb_convert_gray4_pack, gdk_rgb_convert_gray4_d_pack): Fix
same bugs in both functions: Odd start coordinate (partial byte)
was not handled correctly. Also a partial final byte was not
handled correctly.

(gdk_rgb_do_colormaps): Use G_N_ELEMENTS.
(gdk_rgb_create_info): For pseudocolor visuals, use the 2x2x2
colorcube only for depths 3 and 4. For static color, use it for
depths 3..7 like before. (Depth 5..7 pseudocolor probably never
occurs on X11. It doesn't normally occur on Win32 either, but
there is experimental code in gdkvisual-win32.c to let the user
restrict the size of palette used.)
(gdk_rgb_init): Set gdk_rgb_verbose if the GDK_DEBUG_GDKRGB flag
is set.
(gdk_rgb_select_conv): Use gdk_rgb_convert_8 also for depths 5, 6
and 7 (see above). Use gdk_rgb_convert_4_pack for 4 bits per pixel
static color.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkrgb.c