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;
|
int loop2;
|
||||||
XButtonState *button_state = (XButtonState*)class;
|
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)))
|
if (button_state->buttons[loop2 / 8] & (1 << (loop2 % 8)))
|
||||||
{
|
{
|
||||||
rc |= (1<<(loop2-1));
|
rc |= (1<<loop2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user