diff src/SDL_compat.c @ 3585:f8816ffa210b

Initial band-aids on SDL_GetMouseState() API breakage. More work to come. Fixes Bugzilla #758.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 16 Dec 2009 19:50:51 +0000
parents 15eea7a1fa97
children 25dc4a86132c
line wrap: on
line diff
--- a/src/SDL_compat.c	Wed Dec 16 16:42:04 2009 +0000
+++ b/src/SDL_compat.c	Wed Dec 16 19:50:51 2009 +0000
@@ -285,7 +285,7 @@
             }
 
             selected = SDL_SelectMouse(event->wheel.which);
-            SDL_GetMouseState(selected, &x, &y);
+            SDL_GetMouseState(&x, &y);
             SDL_SelectMouse(selected);
 
             if (event->wheel.y > 0) {