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

This commit is contained in:
Ell 2018-04-11 04:49:27 -04:00
parent 5430e7794c
commit 5b8b33dad7
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ gyroscope_callback (GObject *config,
"pan", -yaw, "pan", -yaw,
"tilt", -pitch, "tilt", -pitch,
"spin", -roll, "spin", -roll,
"zoom", CLAMP (100.0 / zoom, 0.01, 1000.0), "zoom", CLAMP (100.0 * zoom, 0.01, 1000.0),
"inverse", invert, "inverse", invert,
NULL); NULL);
} }
@ -86,7 +86,7 @@ config_notify (GObject *config,
set_func (set_data, set_func (set_data,
area, area,
-pan, -tilt, -spin, -pan, -tilt, -spin,
100.0 / zoom, zoom / 100.0,
inverse); inverse);
} }