Fixed test suite for mouse using Uint8 instead of Uint32 for buttons.
SDL_GetMouseState() returned Uint8 in SDL 1.2 but was changed recently.
--- 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();