app: Fix gimp_display_shell_eval_event that had some questionable whiles

This commit is contained in:
Alexia Death 2009-05-29 22:26:57 +03:00
parent c73b71810d
commit 936df1a183
1 changed files with 1 additions and 5 deletions

View File

@ -356,11 +356,7 @@ gimp_display_shell_eval_event (GimpDisplayShell *shell,
0.5 * shell->last_coords.direction);
}
while (coords->direction > 1.0)
coords->direction -= 1.0;
while (coords->direction < 0.0)
coords->direction += 1.0;
coords->direction = coords->direction - floor(coords->direction);
/* High speed -> less smooth*/
inertia_factor *= (1 - coords->velocity);