gdk: Use CAIRO_OPERATOR_SOURCE when painting double-buffered buffer

Otherwise RGBA surfaces will have issues.

This patch only affects non-implicit paints, ie no paints at all in the
real world.
This commit is contained in:
Benjamin Otte
2011-03-11 01:27:37 +01:00
parent 2a2ad8523f
commit 0c37c88147

View File

@ -2969,6 +2969,7 @@ gdk_window_end_paint (GdkWindow *window)
cairo_region_intersect (full_clip, paint->region);
cr = gdk_cairo_create (window);
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
cairo_set_source_surface (cr, paint->surface, 0, 0);
gdk_cairo_region (cr, full_clip);
cairo_fill (cr);