]> Pileus Git - ~andy/gtk/commit
Fix for #119722, reported by Olexiy Avramchenko, patch by Owen Taylor.
authorSoeren Sandmann <sandmann@daimi.au.dk>
Tue, 17 Feb 2004 22:05:47 +0000 (22:05 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Tue, 17 Feb 2004 22:05:47 +0000 (22:05 +0000)
commit6c8430c0c41b3d95188858f5570f31dae698eeac
treea65280d7288eda5658b9863e654a3cc74f38e07a
parentfe956696a3ee242b3c6c7937b13908070fe40cd0
Fix for #119722, reported by Olexiy Avramchenko, patch by Owen Taylor.

Tue Feb 17 23:02:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
Taylor.

* gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field

* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
depth.

* gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
the colormap, if no colormap, special case depth 1,

* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
_gdk_gc_x11_get_fg_xft_color() to get the foreground color.

* gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
Special-case bitmaps without a colormap.

* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
draw_pixbuf() implementation in the bitmap case.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkdrawable-x11.c
gdk/x11/gdkgc-x11.c
gdk/x11/gdkprivate-x11.h