[gimp] app: Minor aspect ratio fixes
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Minor aspect ratio fixes
- Date: Tue, 1 Feb 2011 22:33:23 +0000 (UTC)
commit 6a89db0f5313041cf7f39a477134bb88885d8a73
Author: Alexia Death <alexiadeath gmail com>
Date: Wed Feb 2 00:33:08 2011 +0200
app: Minor aspect ratio fixes
app/core/gimpdynamicsoutput.c | 3 ---
app/paint/gimpbrushcore.c | 2 +-
2 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpdynamicsoutput.c b/app/core/gimpdynamicsoutput.c
index f6f022a..835b0e1 100644
--- a/app/core/gimpdynamicsoutput.c
+++ b/app/core/gimpdynamicsoutput.c
@@ -622,9 +622,6 @@ gimp_dynamics_output_get_aspect_value (GimpDynamicsOutput *output,
tilt_value = gimp_curve_map_value (output->tilt_curve,
tilt_value);
- if (fabs (coords->xtilt) > fabs (coords->ytilt))
- sign = -1.0;
-
total += tilt_value;
factors++;
diff --git a/app/paint/gimpbrushcore.c b/app/paint/gimpbrushcore.c
index 295d72e..b013d6b 100644
--- a/app/paint/gimpbrushcore.c
+++ b/app/paint/gimpbrushcore.c
@@ -1050,7 +1050,7 @@ gimp_brush_core_get_transform (GimpBrushCore *core,
angle = angle + base_angle / 360;
if (aspect_ratio == 0.0)
- aspect_ratio = gimp_brush_generated_get_aspect_ratio (generated_brush);
+ aspect_ratio = (gimp_brush_generated_get_aspect_ratio (generated_brush) - 1) / 19.0 * 20.0;
}
height = core->brush_bound_width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]