Remove the silly ratio limit from scale and just make sure that transformation result is at least 1px

This commit is contained in:
Alexia Death 2009-10-11 10:57:13 +03:00
parent 42b66678f5
commit 2656875953
2 changed files with 5 additions and 4 deletions

View File

@ -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 *

View File

@ -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;