[gimp] app: fix wheel input weirdness hack - corrected in driver



commit c6f0a66de88d39299996efb5617748ccf73d2463
Author: Alexia Death <alexiadeath gmail com>
Date:   Thu Aug 11 17:17:13 2011 +0300

    app: fix wheel input weirdness hack - corrected in driver

 app/core/gimpdynamicsoutput.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpdynamicsoutput.c b/app/core/gimpdynamicsoutput.c
index a0689d3..76845d1 100644
--- a/app/core/gimpdynamicsoutput.c
+++ b/app/core/gimpdynamicsoutput.c
@@ -480,10 +480,8 @@ gimp_dynamics_output_get_linear_value (GimpDynamicsOutput *output,
   if (private->use_wheel)
     {
       gdouble wheel;
-      if (coords->wheel >= 0.5)
-        wheel = (coords->wheel - 0.5) * 2;
-      else
-        wheel = 1 - coords->wheel * 2;
+
+      wheel = coords->wheel;
 
       total += gimp_curve_map_value (private->wheel_curve, wheel);
       factors++;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]