summaryrefslogtreecommitdiff
path: root/gdk/gdkgc.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-02-20 17:57:09 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-02-20 17:57:09 +0000
commit1bb487a2c70f5bffa69d191d93da4c1ad466c05e (patch)
tree4ac116bb3902f3ecde1675dd84376e34b7906d9d /gdk/gdkgc.c
parent0f0845a6b68991119e8155baa695b87d019c94ea (diff)
downloadgtk+-1bb487a2c70f5bffa69d191d93da4c1ad466c05e.tar.gz
Obtain the background color from the gc when it is needed. (#331820)
2006-02-20 Matthias Clasen <mclasen@redhat.com> * gdk/gdkgc.c (_gdk_gc_update_context): Obtain the background color from the gc when it is needed. (#331820)
Diffstat (limited to 'gdk/gdkgc.c')
-rw-r--r--gdk/gdkgc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c
index 066f0c57d1..664d5a03cc 100644
--- a/gdk/gdkgc.c
+++ b/gdk/gdkgc.c
@@ -1152,12 +1152,8 @@ _gdk_gc_update_context (GdkGC *gc,
}
if (fill == GDK_OPAQUE_STIPPLED)
- {
- if (override_foreground)
- foreground = *override_foreground;
- else
- gc_get_background (gc, &background);
- }
+ gc_get_background (gc, &background);
+
switch (fill)
{