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 7157 a082c2eeb247
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
--- a/test/testautomation_mouse.c	Mon May 06 23:01:14 2013 +0200
+++ b/test/testautomation_mouse.c	Mon May 06 23:02:37 2013 +0200
@@ -13,7 +13,7 @@
 /* Test case functions */
 
 /* Helper to evaluate state returned from SDL_GetMouseState */
-int _mouseStateCheck(Uint8 state)
+int _mouseStateCheck(Uint32 state)
 {
   return (state == 0) || 
          (state == SDL_BUTTON(SDL_BUTTON_LEFT)) || 
@@ -32,7 +32,7 @@
 {
    int x;
    int y;
-   Uint8 state;
+   Uint32 state;
 
    /* Pump some events to update mouse state */
    SDL_PumpEvents();
@@ -78,7 +78,7 @@
 {
    int x;
    int y;
-   Uint8 state;
+   Uint32 state;
 
    /* Pump some events to update mouse state */
    SDL_PumpEvents();