[aseprite] 118/196: Fix double-click in Allegro back-end when she_mouse_callback() is used

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:50:09 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit f2ba51f1be724df2d0d6dbc938b733a46ee1b245
Author: David Capello <davidcapello at gmail.com>
Date:   Mon Mar 28 10:16:03 2016 -0300

    Fix double-click in Allegro back-end when she_mouse_callback() is used
---
 src/she/alleg4/mouse_poller.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/she/alleg4/mouse_poller.cpp b/src/she/alleg4/mouse_poller.cpp
index 35ff742..6e55ab9 100644
--- a/src/she/alleg4/mouse_poller.cpp
+++ b/src/she/alleg4/mouse_poller.cpp
@@ -211,6 +211,9 @@ void she_mouse_callback(int flags)
   if (flags & MOUSE_FLAG_MOVE) {
     ev.setType(Event::MouseMove);
     queue_event(ev);
+
+    // Reset double click status
+    double_click_level = DOUBLE_CLICK_NONE;
   }
 
   // buttons

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list