[gimp] Bug 699185 - when moving the pointer fast out of guide scope, do not keep it highlighted.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 699185 - when moving the pointer fast out of guide scope, do not keep it highlighted.
- Date: Sat, 11 May 2013 20:25:08 +0000 (UTC)
commit 3496e178ef63712275dcbbfe559d1a2f42a8141d
Author: Jehan <jehan girinstud io>
Date: Mon Apr 29 07:03:20 2013 +0900
Bug 699185 - when moving the pointer fast out of guide scope, do not keep it highlighted.
When a drawing timeout happens too close from the previous drawing, we don't want to cancel
the timeout function (FALSE), but simply retry later (TRUE).
In our case in particular, if you move your pointer very fast over a guide, the highlighting
drawing was happening less than MINIMUM_DRAW_INTERVAL before the un-highlighting drawing,
hence canceling the later, which caused the drawing bug.
app/tools/gimpdrawtool.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index 48b6614..da8cb6f 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -184,7 +184,7 @@ gimp_draw_tool_draw_timeout (GimpDrawTool *draw_tool)
/* keep the timeout running if the last drawing just happened */
if ((now - draw_tool->last_draw_time) <= MINIMUM_DRAW_INTERVAL)
- return FALSE;
+ return TRUE;
draw_tool->draw_timeout = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]