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:
parent
f60703cb1d
commit
f3bffe5cab
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user