mirror of https://github.com/GNOME/gimp.git
app: invert zoom mapping in gegl:panorama-projection gyro controller
This commit is contained in:
parent
5430e7794c
commit
5b8b33dad7
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue