[gimp] app: Remove the fade exponent. It does not let fade hit zero.
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Remove the fade exponent. It does not let fade hit zero.
- Date: Sun, 7 Mar 2010 13:58:28 +0000 (UTC)
commit 318dd80189d45e30124b086e743c1c5980b3abb7
Author: Alexia Death <alexiadeath gmail com>
Date: Sun Mar 7 15:01:22 2010 +0200
app: Remove the fade exponent. It does not let fade hit zero.
app/paint/gimppaintoptions.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/app/paint/gimppaintoptions.c b/app/paint/gimppaintoptions.c
index 1d2f1bb..15395cb 100644
--- a/app/paint/gimppaintoptions.c
+++ b/app/paint/gimppaintoptions.c
@@ -570,8 +570,7 @@ gimp_paint_options_get_fade (GimpPaintOptions *paint_options,
else
pos = pos - (gint) pos;
- /* Model the amount of paint left as a gaussian curve */
- z = exp (- pos * pos * 5.541);
+ z = pos;
if (fade_options->fade_reverse)
z = 1.0 - z;
@@ -648,7 +647,7 @@ gimp_paint_options_get_brush_mode (GimpPaintOptions *paint_options)
/* Im leaving the pressurize code in here, but Im not sure how,
* or if at all it should be used. Not as hardness anyway.
- *
+ *
* if (gimp_dynamics_output_is_enabled(dynamics->hardness_output))
* return GIMP_BRUSH_PRESSURE; */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]