From f3bffe5cab61efceaaadc5ba81129860b7b5c1a6 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 7 Sep 2010 19:07:19 +0100 Subject: [PATCH] blur-effect: fix paint volume padding For the blur effect we use a BLUR_PADDING constant to pad out the volume of the source actor on the x and y axis. Previously we were offsetting the origin negatively using BLUR_PADDING and then adding BLUR_PADDING to the width and height, but we should have been adding 2*BLUR_PADDING instead. --- clutter/clutter-blur-effect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-blur-effect.c b/clutter/clutter-blur-effect.c index 7d2374f6a..144ee96c1 100644 --- a/clutter/clutter-blur-effect.c +++ b/clutter/clutter-blur-effect.c @@ -268,8 +268,8 @@ clutter_blur_effect_get_paint_volume (ClutterEffect *effect, origin.x -= BLUR_PADDING; origin.y -= BLUR_PADDING; - cur_width += BLUR_PADDING; - cur_height += BLUR_PADDING; + cur_width += 2 * BLUR_PADDING; + cur_height += 2 * BLUR_PADDING; clutter_paint_volume_set_origin (volume, &origin); clutter_paint_volume_set_width (volume, cur_width); clutter_paint_volume_set_height (volume, cur_height);