mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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.
This commit is contained in:
parent
cf4a6abe0e
commit
df434db70e
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
||||
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.
|
||||
|
||||
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdialog.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
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.
|
||||
|
||||
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdialog.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
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.
|
||||
|
||||
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdialog.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
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.
|
||||
|
||||
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdialog.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
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.
|
||||
|
||||
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/gtkfilechooserdialog.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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1033,6 +1033,8 @@ gdk_window_end_paint (GdkWindow *window)
|
||||
clip_box.x - x_offset, clip_box.y - y_offset,
|
||||
clip_box.width, clip_box.height);
|
||||
|
||||
gdk_gc_set_clip_region (tmp_gc, NULL);
|
||||
|
||||
g_object_unref (paint->pixmap);
|
||||
gdk_region_destroy (paint->region);
|
||||
g_free (paint);
|
||||
|
Loading…
Reference in New Issue
Block a user