From a5a75e0bde25a4c796f676d32e6dcae7f290b2c4 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Mon, 6 May 2013 23:02:37 +0200 Subject: [PATCH] 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testautomation_mouse.c b/test/testautomation_mouse.c index e0fd6fae6..2f7eb1b8e 100644 --- a/test/testautomation_mouse.c +++ b/test/testautomation_mouse.c @@ -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 @@ mouse_getMouseState(void *arg) { int x; int y; - Uint8 state; + Uint32 state; /* Pump some events to update mouse state */ SDL_PumpEvents(); @@ -78,7 +78,7 @@ mouse_getRelativeMouseState(void *arg) { int x; int y; - Uint8 state; + Uint32 state; /* Pump some events to update mouse state */ SDL_PumpEvents();