app: fix offset handling in spiral gradients
In gimp:gradient, properly scale the "offset" property in spiral
graidnets.
(cherry picked from commit 04280690b2
)
This commit is contained in:
@ -777,6 +777,8 @@ gradient_calc_spiral_factor (gdouble dist,
|
|||||||
gdouble ang;
|
gdouble ang;
|
||||||
double r;
|
double r;
|
||||||
|
|
||||||
|
offset = offset / 100.0;
|
||||||
|
|
||||||
ang0 = atan2 (axis[0], axis[1]) + G_PI;
|
ang0 = atan2 (axis[0], axis[1]) + G_PI;
|
||||||
ang1 = atan2 (x, y) + G_PI;
|
ang1 = atan2 (x, y) + G_PI;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user