mirror of https://github.com/GNOME/gimp.git
app: fix total weight calc. of hardness convolution kernel
This commit is contained in:
parent
670be1f880
commit
5255d91032
|
@ -761,7 +761,7 @@ gimp_brush_transform_blur (GimpTempBuf *buf,
|
|||
gint rh = MIN (r, height - 1);
|
||||
gfloat n = 2 * r + 1;
|
||||
gfloat n_r = n * r;
|
||||
gfloat weight = (n * n / 2) * (n * n / 2 + 1);
|
||||
gfloat weight = floor (n * n / 2) * (floor (n * n / 2) + 1);
|
||||
gfloat weight_inv = 1 / weight;
|
||||
gint x;
|
||||
gint y;
|
||||
|
|
Loading…
Reference in New Issue