[gtk+] render: Clip the correct rectangle



commit f9da4f0270c8ebbadc1500bd42bd2594c4c9edb3
Author: Benjamin Otte <otte redhat com>
Date:   Tue Nov 8 02:15:43 2016 +0100

    render: Clip the correct rectangle
    
    We translated before.

 gtk/gtkrenderbackground.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrenderbackground.c b/gtk/gtkrenderbackground.c
index 80e17dc..c3bc5cd 100644
--- a/gtk/gtkrenderbackground.c
+++ b/gtk/gtkrenderbackground.c
@@ -387,7 +387,7 @@ gtk_css_style_render_background (GtkCssStyle      *style,
   if (needs_push_group)
     {
       cairo_save (cr);
-      cairo_rectangle (cr, x, y, width, height);
+      cairo_rectangle (cr, 0, 0, width, height);
       cairo_clip (cr);
       cairo_push_group (cr);
     }


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