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

This commit is contained in:
Mikolaj Zalewski 2007-08-30 12:41:37 -07:00 committed by Alexandre Julliard
parent 71d77d98e2
commit ee2db299de
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
}