[aseprite] 38/128: Include device in double-click event on Skia/Win

Tobias Hansen thansen at moszumanska.debian.org
Mon May 9 21:24:21 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 47708a6826a18da20d6e5292defaa910c3631b8e
Author: David Capello <davidcapello at gmail.com>
Date:   Wed Apr 20 22:30:45 2016 -0300

    Include device in double-click event on Skia/Win
---
 src/she/win/window.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/she/win/window.h b/src/she/win/window.h
index 0603453..e58f804 100644
--- a/src/she/win/window.h
+++ b/src/she/win/window.h
@@ -411,6 +411,12 @@ namespace she {
             msg == WM_LBUTTONDBLCLK ? Event::LeftButton:
             msg == WM_RBUTTONDBLCLK ? Event::RightButton:
             msg == WM_MBUTTONDBLCLK ? Event::MiddleButton: Event::NoneButton);
+
+          if (m_device != Event::UnknownDevice) {
+            ev.setDevice(m_device);
+            ev.setPressure(m_pressure);
+          }
+
           queueEvent(ev);
           break;
         }

-- 
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