[gimp/soc-2010-cage-2] app: Disable somewhat obsolete stroke smooth
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] app: Disable somewhat obsolete stroke smooth
- Date: Thu, 30 Dec 2010 18:10:50 +0000 (UTC)
commit ceb4d0948c59fee6d3b9079a499d2b48d8f35b3c
Author: Alexia Death <alexiadeath gmail com>
Date: Wed Nov 17 19:55:16 2010 +0200
app: Disable somewhat obsolete stroke smooth
app/display/gimpdisplayshell-coords.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-coords.c b/app/display/gimpdisplayshell-coords.c
index 00e3d6e..cf08763 100644
--- a/app/display/gimpdisplayshell-coords.c
+++ b/app/display/gimpdisplayshell-coords.c
@@ -222,6 +222,7 @@ gimp_display_shell_eval_event (GimpDisplayShell *shell,
coords->direction = coords->direction - floor (coords->direction);
+#ifdef USE_MOTION_INERTIA
/* High speed -> less smooth*/
inertia_factor *= (1 - coords->velocity);
@@ -277,6 +278,7 @@ gimp_display_shell_eval_event (GimpDisplayShell *shell,
/* Recalculate distance */
distance = sqrt (SQR (delta_x) + SQR (delta_y));
}
+#endif
/* do event fill for devices that do not provide enough events*/
if (distance >= EVENT_FILL_PRECISION &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]