[gimp] app: Fix outline offset
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Fix outline offset
- Date: Tue, 1 Feb 2011 22:58:24 +0000 (UTC)
commit 418632916ac33e0b9b6144c8e72ccbb8c33b4384
Author: Alexia Death <alexiadeath gmail com>
Date: Wed Feb 2 00:58:09 2011 +0200
app: Fix outline offset
app/core/gimpbrush-transform.c | 4 ++--
app/paint/gimpbrushcore.c | 7 ++++---
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/app/core/gimpbrush-transform.c b/app/core/gimpbrush-transform.c
index ccd900c..ab5f388 100644
--- a/app/core/gimpbrush-transform.c
+++ b/app/core/gimpbrush-transform.c
@@ -657,8 +657,8 @@ gimp_brush_transform_matrix (gdouble width,
if (aspect_ratio < 0.0)
{
- scale_x = scale * (1.0 - (fabs (aspect_ratio) / 20.0));
- scale_y = scale;
+ scale_x = scale * (1.0 - (fabs (aspect_ratio) / 20.0));
+ scale_y = scale;
}
else if (aspect_ratio > 0.0)
{
diff --git a/app/paint/gimpbrushcore.c b/app/paint/gimpbrushcore.c
index b013d6b..33bf580 100644
--- a/app/paint/gimpbrushcore.c
+++ b/app/paint/gimpbrushcore.c
@@ -1058,15 +1058,16 @@ gimp_brush_core_get_transform (GimpBrushCore *core,
if (aspect_ratio < 0.0)
{
- scale_x = scale / fabs (aspect_ratio);
+ scale_x = scale * (1.0 - (fabs (aspect_ratio) / 20.0));
scale_y = scale;
}
- else if (aspect_ratio > 0.0)
+ else if (aspect_ratio > 0.0)
{
scale_x = scale;
- scale_y = scale / aspect_ratio;
+ scale_y = scale * (1.0 - (aspect_ratio / 20.0));
}
+
if (scale > 0.0)
{
scale = gimp_brush_clamp_scale (core->main_brush, scale);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]