summaryrefslogtreecommitdiff
path: root/gdk/gdkpixbuf-render.c
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2004-02-18 12:43:23 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2004-02-18 12:43:23 +0000
commitdf434db70ef3c029bbe0bc3c5580445c471584c3 (patch)
tree72235273a666f9d0af84c11b6fb6129276573957 /gdk/gdkpixbuf-render.c
parentcf4a6abe0e803529f337f63de3ffd532b9e7b0bf (diff)
downloadgdk-pixbuf-df434db70ef3c029bbe0bc3c5580445c471584c3.tar.gz
Fix bug reported by Nam SungHyun.
Wed Feb 18 13:28:57 2004 Soeren Sandmann <sandmann@daimi.au.dk> Fix bug reported by Nam SungHyun. * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Don't use a cached GC here since the function needs to modify the foreground color. * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back to NULL on the cached GC.
Diffstat (limited to 'gdk/gdkpixbuf-render.c')
-rw-r--r--gdk/gdkpixbuf-render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkpixbuf-render.c b/gdk/gdkpixbuf-render.c
index b93fac33c..0065ed13f 100644
--- a/gdk/gdkpixbuf-render.c
+++ b/gdk/gdkpixbuf-render.c
@@ -83,7 +83,6 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
return;
gc = gdk_gc_new (bitmap);
- gc = _gdk_drawable_get_scratch_gc (GDK_DRAWABLE (bitmap), FALSE);
if (!pixbuf->has_alpha)
{
@@ -132,6 +131,8 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
start + dest_x, y + dest_y,
x - 1 + dest_x, y + dest_y);
}
+
+ g_object_unref (gc);
}