mirror of https://github.com/GNOME/gimp.git
Revert "app: Fix garbage appearing in 1:1 apect ratio 2 spike generated brushes"
This reverts commit 54844e8ab8
.
An unneded pseudofix. Proper fix will be commited soon.
This commit is contained in:
parent
11f094f565
commit
c5b4643d69
app/core
|
@ -480,9 +480,11 @@ gimp_brush_generated_calc (GimpBrushGenerated *brush,
|
|||
gdouble tx = c * x - s * y;
|
||||
gdouble ty = fabs (s * x + c * y);
|
||||
|
||||
gdouble ang = atan2 (ty, tx);
|
||||
if (spikes > 2)
|
||||
{
|
||||
gdouble angle = atan2 (ty, tx);
|
||||
|
||||
while (ang > G_PI / spikes)
|
||||
while (angle > G_PI / spikes)
|
||||
{
|
||||
gdouble sx = tx;
|
||||
gdouble sy = ty;
|
||||
|
@ -490,7 +492,8 @@ gimp_brush_generated_calc (GimpBrushGenerated *brush,
|
|||
tx = cs * sx - ss * sy;
|
||||
ty = ss * sx + cs * sy;
|
||||
|
||||
ang -= 2 * G_PI / spikes;
|
||||
angle -= 2 * G_PI / spikes;
|
||||
}
|
||||
}
|
||||
|
||||
ty *= aspect_ratio;
|
||||
|
|
Loading…
Reference in New Issue