[gimp] app: remove call to possibly buggy and un-needed scale clamp
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove call to possibly buggy and un-needed scale clamp
- Date: Sat, 10 Sep 2011 18:48:25 +0000 (UTC)
commit 2528f656b52784ced94912f2ab60f8587e0ecc79
Author: Alexia Death <alexiadeath gmail com>
Date: Sat Sep 10 21:39:55 2011 +0300
app: remove call to possibly buggy and un-needed scale clamp
It's likely that the removed call and function were causing
random drawing artefacts, but as this was once in a blue
moon bug, I have just a guess to go by however, testing
revealed no regressions, so pushing.
app/core/gimpbrush.c | 12 ------------
app/core/gimpbrush.h | 3 ---
app/paint/gimpbrushcore.c | 2 --
3 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/app/core/gimpbrush.c b/app/core/gimpbrush.c
index 222246c..088e584 100644
--- a/app/core/gimpbrush.c
+++ b/app/core/gimpbrush.c
@@ -737,18 +737,6 @@ gimp_brush_transform_boundary (GimpBrush *brush,
return boundary;
}
-gdouble
-gimp_brush_clamp_scale (GimpBrush *brush,
- gdouble scale)
-{
- g_return_val_if_fail (GIMP_IS_BRUSH (brush), 1.0);
-
- /* ensure that the final brush mask remains >= 0.5 pixel along both axes */
- return MAX (0.5 / (gfloat) MIN (brush->mask->width,
- brush->mask->height),
- scale);
-}
-
TempBuf *
gimp_brush_get_mask (const GimpBrush *brush)
{
diff --git a/app/core/gimpbrush.h b/app/core/gimpbrush.h
index 06054da..ef518a6 100644
--- a/app/core/gimpbrush.h
+++ b/app/core/gimpbrush.h
@@ -134,9 +134,6 @@ const GimpBezierDesc * gimp_brush_transform_boundary (GimpBrush *brush,
gint *width,
gint *height);
-gdouble gimp_brush_clamp_scale (GimpBrush *brush,
- gdouble scale);
-
TempBuf * gimp_brush_get_mask (const GimpBrush *brush);
TempBuf * gimp_brush_get_pixmap (const GimpBrush *brush);
diff --git a/app/paint/gimpbrushcore.c b/app/paint/gimpbrushcore.c
index e97982e..482025f 100644
--- a/app/paint/gimpbrushcore.c
+++ b/app/paint/gimpbrushcore.c
@@ -798,8 +798,6 @@ gimp_brush_core_get_paint_area (GimpPaintCore *paint_core,
coords);
}
- core->scale = gimp_brush_clamp_scale (core->main_brush, core->scale);
-
gimp_brush_transform_size (core->brush,
core->scale, core->aspect_ratio, core->angle,
&brush_width, &brush_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]