Module: wine Branch: master Commit: 4189095d8706a5e6b0b85a900bea037b86f23845 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4189095d8706a5e6b0b85a900b...
Author: Bruno Jesus 00cpxxx@gmail.com Date: Fri Jul 22 21:50:33 2016 -0300
joy.cpl: Display the correct number of button boxes during test.
Signed-off-by: Bruno Jesus 00cpxxx@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/joy.cpl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c index d6ba5d5..b5a55fa 100644 --- a/dlls/joy.cpl/main.c +++ b/dlls/joy.cpl/main.c @@ -457,7 +457,7 @@ static void test_handle_joychange(HWND hwnd, struct JoystickData *data)
/* Enable only buttons present in the device */ for (i = 0; i < TEST_MAX_BUTTONS; i++) - ShowWindow(data->graphics.buttons[i], i <= data->joysticks[data->chosen_joystick].num_buttons); + ShowWindow(data->graphics.buttons[i], i < data->joysticks[data->chosen_joystick].num_buttons); }
/*********************************************************************