Fixed test suite for mouse using Uint8 instead of Uint32 for buttons.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 06 May 2013 23:02:37 +0200
changeset 7157a082c2eeb247
parent 7156 0758e28b08f3
child 7158 ff52fba70795
Fixed test suite for mouse using Uint8 instead of Uint32 for buttons.
SDL_GetMouseState() returned Uint8 in SDL 1.2 but was changed recently.
test/testautomation_mouse.c
     1.1 --- a/test/testautomation_mouse.c	Mon May 06 23:01:14 2013 +0200
     1.2 +++ b/test/testautomation_mouse.c	Mon May 06 23:02:37 2013 +0200
     1.3 @@ -13,7 +13,7 @@
     1.4  /* Test case functions */
     1.5  
     1.6  /* Helper to evaluate state returned from SDL_GetMouseState */
     1.7 -int _mouseStateCheck(Uint8 state)
     1.8 +int _mouseStateCheck(Uint32 state)
     1.9  {
    1.10    return (state == 0) || 
    1.11           (state == SDL_BUTTON(SDL_BUTTON_LEFT)) || 
    1.12 @@ -32,7 +32,7 @@
    1.13  {
    1.14     int x;
    1.15     int y;
    1.16 -   Uint8 state;
    1.17 +   Uint32 state;
    1.18  
    1.19     /* Pump some events to update mouse state */
    1.20     SDL_PumpEvents();
    1.21 @@ -78,7 +78,7 @@
    1.22  {
    1.23     int x;
    1.24     int y;
    1.25 -   Uint8 state;
    1.26 +   Uint32 state;
    1.27  
    1.28     /* Pump some events to update mouse state */
    1.29     SDL_PumpEvents();