[gtk+/wip/blur] Fix shadow blur render



commit c37ea3e88693841a98f9bbcdaccff34ffb71c8cf
Author: Andrea Cimitan <andrea cimitan canonical com>
Date:   Mon Apr 16 15:05:31 2012 +0100

    Fix shadow blur render

 gtk/gtkshadow.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkshadow.c b/gtk/gtkshadow.c
index 0253e1b..6b602c1 100644
--- a/gtk/gtkshadow.c
+++ b/gtk/gtkshadow.c
@@ -506,8 +506,8 @@ _gtk_box_shadow_render (GtkShadow           *shadow,
 
           /* Create a larger surface to center the blur. */
           surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
-                                                box.box.width + bradius * 2,
-                                                box.box.height + bradius * 2);
+                                                padding_box->box.width + bradius * 2,
+                                                padding_box->box.height + bradius * 2);
           cr_surface = cairo_create (surface); 
 
           /* Center the rendering. */



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