[gtk+] gdk: Do final copy with OPERATOR_SOURCE in end_implicit_paint
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Do final copy with OPERATOR_SOURCE in end_implicit_paint
- Date: Fri, 13 Aug 2010 18:58:16 +0000 (UTC)
commit fc170551b6ffb57d9be6386a5d4d526bdca5bc68
Author: Benjamin Otte <otte redhat com>
Date: Fri Aug 13 20:46:12 2010 +0200
gdk: Do final copy with OPERATOR_SOURCE in end_implicit_paint
For windows with alpha channel, the previous contents would otherwise
not be erased. Visible for example in the status icon code.
Thanks to Thomas Wood for noticing.
gdk/gdkwindow.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 3201184..e8e3723 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2833,6 +2833,7 @@ gdk_window_end_implicit_paint (GdkWindow *window)
cr = gdk_cairo_create (private->impl);
gdk_cairo_set_source_pixmap (cr, paint->pixmap,
paint->x_offset, paint->y_offset);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
gdk_cairo_region (cr, paint->region);
cairo_fill (cr);
cairo_destroy (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]