[gimp/soc-2009-dynamics] Move scale limit so it does not bother generated brushes.
- From: Alexia Death <alexiade src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp/soc-2009-dynamics] Move scale limit so it does not bother generated brushes.
- Date: Sun, 11 Oct 2009 09:18:28 +0000 (UTC)
commit 04bad5609a00ad8b46bf64cc589b39eb8d8e7b23
Author: Alexia Death <alexiadeath gmail com>
Date: Sun Oct 11 12:17:29 2009 +0300
Move scale limit so it does not bother generated brushes.
app/core/gimpbrush-transform.c | 5 +++++
app/core/gimpbrush.c | 3 ---
app/core/gimpbrushgenerated.c | 2 ++
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpbrush-transform.c b/app/core/gimpbrush-transform.c
index 4d9d4cb..f8e9335 100644
--- a/app/core/gimpbrush-transform.c
+++ b/app/core/gimpbrush-transform.c
@@ -67,6 +67,11 @@ gimp_brush_real_transform_size (GimpBrush *brush,
scale, scale / aspect_ratio, angle, &matrix);
gimp_brush_transform_bounding_box (brush, &matrix, &x, &y, width, height);
+
+ /*Transform size can not be less than 1 px*/
+ width = MAX(1, width);
+ height = MAX(1, height);
+
}
/*
diff --git a/app/core/gimpbrush.c b/app/core/gimpbrush.c
index 8a7dc83..14f1674 100644
--- a/app/core/gimpbrush.c
+++ b/app/core/gimpbrush.c
@@ -479,9 +479,6 @@ 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);
}
diff --git a/app/core/gimpbrushgenerated.c b/app/core/gimpbrushgenerated.c
index e18b096..17f31e8 100644
--- a/app/core/gimpbrushgenerated.c
+++ b/app/core/gimpbrushgenerated.c
@@ -322,6 +322,7 @@ gimp_brush_generated_transform_size (GimpBrush *gbrush,
*width = half_width * 2 + 1;
*height = half_height * 2 + 1;
+
}
static TempBuf *
@@ -350,6 +351,7 @@ gimp_brush_generated_transform_mask (GimpBrush *gbrush,
brush->aspect_ratio * aspect_ratio,
(brush->angle + 360 * angle),
NULL, NULL);
+
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]