Bug 760737 - Brush angle jumps when tablet pen is tilted horizontally.

Fix cursor rotation jump when tablet pen is tilted horizontally.
This changes to the correct values for the special case of tilt_x == 0.0.

Reviewer (Jehan)'s note: computing the convergence of the tilt function
in the `else` block, when tilt_x approaches 0, tilt value indeed
converges to 0.25 with tilt_y > 0 and 0.75 (or -0.25 which is the same)
with tilt_y < 0.
This commit is contained in:
Jeremiah Darais 2016-01-16 21:20:26 -08:00 committed by Jehan
parent d905f5bcc1
commit bb1785396f

View file

@ -570,9 +570,9 @@ gimp_dynamics_output_get_angular_value (GimpDynamicsOutput *output,
if (tilt_x == 0.0)
{
if (tilt_y >= 0.0)
tilt = 0.5;
tilt = 0.25;
else if (tilt_y < 0.0)
tilt = 0.0;
tilt = 0.75;
else
tilt = -1.0;
}