Mikolaj Zalewski : winex11.drv: wintab: Copy also the button #0 state.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 31 07:22:21 CDT 2007


Module: wine
Branch: master
Commit: ee2db299deb19c76a5ff9a5338b3640b490494e4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ee2db299deb19c76a5ff9a5338b3640b490494e4

Author: Mikolaj Zalewski <mikolajz at google.com>
Date:   Thu Aug 30 12:41:37 2007 -0700

winex11.drv: wintab: Copy also the button #0 state.

---

 dlls/winex11.drv/wintab.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c
index eece156..8846342 100644
--- a/dlls/winex11.drv/wintab.c
+++ b/dlls/winex11.drv/wintab.c
@@ -571,11 +571,11 @@ static void set_button_state(XID deviceid)
             {
                 int loop2;
                 XButtonState *button_state =  (XButtonState*)class;
-                for (loop2 = 1; loop2 <= button_state->num_buttons; loop2++)
+                for (loop2 = 0; loop2 < button_state->num_buttons; loop2++)
                 {
                     if (button_state->buttons[loop2 / 8] & (1 << (loop2 % 8)))
                     {
-                        rc |= (1<<(loop2-1));
+                        rc |= (1<<loop2);
                     }
                 }
             }




More information about the wine-cvs mailing list