mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
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.
This commit is contained in:
parent
6334d13de5
commit
fc170551b6
@ -2833,6 +2833,7 @@ gdk_window_end_implicit_paint (GdkWindow *window)
|
|||||||
cr = gdk_cairo_create (private->impl);
|
cr = gdk_cairo_create (private->impl);
|
||||||
gdk_cairo_set_source_pixmap (cr, paint->pixmap,
|
gdk_cairo_set_source_pixmap (cr, paint->pixmap,
|
||||||
paint->x_offset, paint->y_offset);
|
paint->x_offset, paint->y_offset);
|
||||||
|
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||||
gdk_cairo_region (cr, paint->region);
|
gdk_cairo_region (cr, paint->region);
|
||||||
cairo_fill (cr);
|
cairo_fill (cr);
|
||||||
cairo_destroy (cr);
|
cairo_destroy (cr);
|
||||||
|
Loading…
Reference in New Issue
Block a user