[gtk+/wip/otte/rendernode] xxx: 5048c1



commit f15d4266ebcf9cdeecbe7a46c20c2c9bd5d47d8c
Author: Benjamin Otte <otte redhat com>
Date:   Tue Dec 13 09:24:45 2016 +0100

    xxx: 5048c1

 gsk/gskrendernodeimpl.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index d5e9486..764b702 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -731,7 +731,7 @@ gsk_opacity_node_draw (GskRenderNode *node,
 
   /* clip so the push_group() creates a smaller surface */
   gsk_render_node_get_bounds (self->child, &bounds);
-  cairo_rectangle (cr, bounds.origin.x, bounds.origin.x, bounds.size.width, bounds.size.height);
+  cairo_rectangle (cr, bounds.origin.x, bounds.origin.y, bounds.size.width, bounds.size.height);
   cairo_clip (cr);
 
   cairo_push_group (cr);
@@ -740,6 +740,8 @@ gsk_opacity_node_draw (GskRenderNode *node,
 
   cairo_pop_group_to_source (cr);
   cairo_paint_with_alpha (cr, self->opacity);
+
+  cairo_restore (cr);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]