diff options
author | Nicholas Rishel <rishel.nick@gmail.com> | 2020-05-26 06:34:07 +0300 |
---|---|---|
committer | Nicholas Rishel <rishel.nick@gmail.com> | 2020-10-31 02:29:03 +0300 |
commit | d58387cdda577ca5102d7aeac183de53639887f7 (patch) | |
tree | 37ce9eb80896834f3c94242000979fbd04340e56 /intern/ghost | |
parent | 14cddad034ae8b2b176052b75c9161e680688a88 (diff) |
Correcting the type for indexing Wintab buttons.
Signed-off-by: Nicholas Rishel <rishel.nick@gmail.com>
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWin32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp index 44340cddc87..c5fe38ee678 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cpp +++ b/intern/ghost/intern/GHOST_WindowWin32.cpp @@ -1362,7 +1362,7 @@ GHOST_TSuccess GHOST_WindowWin32::getWintabInfo(std::vector<GHOST_WintabInfoWin3 DWORD buttonsChanged = m_wintab.sysButtonsPressed ^ pkt.pkButtons; // Find the index for the changed button from the button map. - DWORD physicalButton = 0; + WORD physicalButton = 0; for (DWORD diff = (unsigned)buttonsChanged >> 1; diff > 0; diff = (unsigned)diff >> 1) { physicalButton++; } |