[aseprite] 172/308: Fix she::Event::setRepeat() calls on Skia/Win WM_KEYUP/DOWN processing

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:45:07 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 e97a7070d6e1a9742718434389f1d2970d9e4bb3
Author: David Capello <davidcapello at gmail.com>
Date:   Wed Dec 30 10:33:44 2015 -0300

    Fix she::Event::setRepeat() calls on Skia/Win WM_KEYUP/DOWN processing
---
 src/she/win/window.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/she/win/window.h b/src/she/win/window.h
index d447bac..d8eaf21 100644
--- a/src/she/win/window.h
+++ b/src/she/win/window.h
@@ -456,7 +456,7 @@ namespace she {
           Event ev;
           ev.setType(Event::KeyDown);
           ev.setScancode(win32vk_to_scancode(vk));
-          ev.setRepeat(lparam & 15);
+          ev.setRepeat(lparam & 0xffff);
 
           if (charsInBuffer < 1) {
             ev.setUnicodeChar(0);
@@ -477,7 +477,7 @@ namespace she {
           ev.setType(Event::KeyUp);
           ev.setScancode(win32vk_to_scancode(wparam));
           ev.setUnicodeChar(0);
-          ev.setRepeat(lparam & 15);
+          ev.setRepeat(lparam & 0xffff);
           queueEvent(ev);
 
           // TODO If we use native menus, this message should be given

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