[Bf-blender-cvs] [d58387cdda5] master: Correcting the type for indexing Wintab buttons.

Nicholas Rishel noreply at git.blender.org
Sat Oct 31 00:32:26 CET 2020


Commit: d58387cdda577ca5102d7aeac183de53639887f7
Author: Nicholas Rishel
Date:   Mon May 25 20:34:07 2020 -0700
Branches: master
https://developer.blender.org/rBd58387cdda577ca5102d7aeac183de53639887f7

Correcting the type for indexing Wintab buttons.

Signed-off-by: Nicholas Rishel <rishel.nick at gmail.com>

===================================================================

M	intern/ghost/intern/GHOST_WindowWin32.cpp

===================================================================

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++;
     }



More information about the Bf-blender-cvs mailing list