[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-cvs
Subject: Mikolaj Zalewski : winex11.drv: wintab: Copy also the button #0 state.
From: Alexandre Julliard <julliard () wine ! codeweavers ! com>
Date: 2007-08-31 12:22:21
Message-ID: E1IR5W1-0008JM-LB () wine ! codeweavers ! com
[Download RAW message or body]
Module: wine
Branch: master
Commit: ee2db299deb19c76a5ff9a5338b3640b490494e4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ee2db299deb19c76a5ff9a5338b3640b490494e4
Author: Mikolaj Zalewski <mikolajz@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);
}
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic