mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
winex11.drv: wintab: Copy also the button #0 state.
This commit is contained in:
parent
71d77d98e2
commit
ee2db299de
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user