mirror of https://github.com/GNOME/gimp.git
Remove the silly ratio limit from scale and just make sure that transformation result is at least 1px
This commit is contained in:
parent
42b66678f5
commit
2656875953
|
@ -479,6 +479,10 @@ gimp_brush_transform_size (GimpBrush *brush,
|
|||
}
|
||||
|
||||
GIMP_BRUSH_GET_CLASS (brush)->transform_size (brush, scale, aspect_ratio, angle, width, height);
|
||||
/*Transform size can not be less than 1 px*/
|
||||
width = MAX(1, width);
|
||||
height = MAX(1, height);
|
||||
|
||||
}
|
||||
|
||||
TempBuf *
|
||||
|
|
|
@ -1207,10 +1207,7 @@ gimp_dynamics_get_scale_output_val (GimpDynamicsOutput *output, GimpCoords coord
|
|||
if (factors > 0)
|
||||
scale = total / factors;
|
||||
|
||||
if (scale < 1 / 64.0)
|
||||
scale = 1 / 8.0;
|
||||
else
|
||||
scale = sqrt (scale);
|
||||
scale = sqrt (scale);
|
||||
|
||||
/* printf("Dynamics queried(scale). Result: %f, factors: %f, total: %f \n", result, factors, total);*/
|
||||
return scale;
|
||||
|
|
Loading…
Reference in New Issue