[gimp] app: invert zoom mapping in gegl:panorama-projection gyro controller



commit 5b8b33dad723323080aa4e3064f8e259147723ef
Author: Ell <ell_se yahoo com>
Date:   Wed Apr 11 04:49:27 2018 -0400

    app: invert zoom mapping in gegl:panorama-projection gyro controller

 app/propgui/gimppropgui-panorama-projection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/propgui/gimppropgui-panorama-projection.c b/app/propgui/gimppropgui-panorama-projection.c
index 6bb0ad1..41f011c 100644
--- a/app/propgui/gimppropgui-panorama-projection.c
+++ b/app/propgui/gimppropgui-panorama-projection.c
@@ -54,7 +54,7 @@ gyroscope_callback (GObject       *config,
                 "pan",     -yaw,
                 "tilt",    -pitch,
                 "spin",    -roll,
-                "zoom",    CLAMP (100.0 / zoom, 0.01, 1000.0),
+                "zoom",    CLAMP (100.0 * zoom, 0.01, 1000.0),
                 "inverse", invert,
                 NULL);
 }
@@ -86,7 +86,7 @@ config_notify (GObject          *config,
   set_func (set_data,
             area,
             -pan, -tilt, -spin,
-            100.0 / zoom,
+            zoom / 100.0,
             inverse);
 }
 


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