[gtk+/wip/simple-draw3] GtkPixelCache: Make sure we always copy using SOURCE
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/simple-draw3] GtkPixelCache: Make sure we always copy using SOURCE
- Date: Thu, 2 May 2013 13:56:08 +0000 (UTC)
commit 770ef2dc83b167adc35aa1d5399692eb34cbc9ee
Author: Alexander Larsson <alexl redhat com>
Date: Tue Apr 30 16:13:44 2013 +0200
GtkPixelCache: Make sure we always copy using SOURCE
We were using OVER for the first copy (from source to group surface.
gtk/gtkpixelcache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpixelcache.c b/gtk/gtkpixelcache.c
index 7b0b345..b65f20a 100644
--- a/gtk/gtkpixelcache.c
+++ b/gtk/gtkpixelcache.c
@@ -215,6 +215,7 @@ _gtk_pixel_cache_set_position (GtkPixelCache *cache,
backing_cr = cairo_create (cache->surface);
gdk_cairo_region (backing_cr, copy_region);
+ cairo_set_operator (backing_cr, CAIRO_OPERATOR_SOURCE);
cairo_clip (backing_cr);
cairo_push_group (backing_cr);
cairo_set_source_surface (backing_cr, cache->surface,
@@ -222,7 +223,6 @@ _gtk_pixel_cache_set_position (GtkPixelCache *cache,
cache->surface_y - new_surf_y);
cairo_paint (backing_cr);
cairo_pop_group_to_source (backing_cr);
- cairo_set_operator (backing_cr, CAIRO_OPERATOR_SOURCE);
cairo_paint (backing_cr);
cairo_destroy (backing_cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]