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.
This commit is contained in:
Robert Bragg 2010-09-07 19:07:19 +01:00
parent f60703cb1d
commit f3bffe5cab

View File

@ -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);