[aseprite] 13/196: Fix getting lwin/rwin key state on Windows

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:49:55 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 321eb36f52091dd05d2985b053a9b64b964cec97
Author: David Capello <davidcapello at gmail.com>
Date:   Wed Mar 2 10:07:45 2016 -0300

    Fix getting lwin/rwin key state on Windows
---
 src/she/win/vk.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/she/win/vk.cpp b/src/she/win/vk.cpp
index e4ff2f3..abab814 100644
--- a/src/she/win/vk.cpp
+++ b/src/she/win/vk.cpp
@@ -309,8 +309,8 @@ KeyModifiers get_modifiers_from_last_win32_message()
     modifiers |= kKeyAltModifier;
   if (GetKeyState(VK_SPACE) & 0x8000)
     modifiers |= kKeySpaceModifier;
-  if (GetKeyState(kKeyLWin) & 0x8000) ||
-     (GetKeyState(kKeyRWin) & 0x8000))
+  if ((GetKeyState(VK_LWIN) & 0x8000) ||
+      (GetKeyState(VK_RWIN) & 0x8000))
     modifiers |= kKeyWinModifier;
   return (KeyModifiers)modifiers;
 }

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