diff src/events/SDL_mouse.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 6bb9952d5029
children 64ce267332c6
line wrap: on
line diff
--- a/src/events/SDL_mouse.c	Wed Dec 16 16:42:04 2009 +0000
+++ b/src/events/SDL_mouse.c	Wed Dec 16 19:50:51 2009 +0000
@@ -252,9 +252,9 @@
 }
 
 Uint8
-SDL_GetMouseState(int index, int *x, int *y)
+SDL_GetMouseState(int *x, int *y)
 {
-    SDL_Mouse *mouse = SDL_GetMouse(index);
+    SDL_Mouse *mouse = SDL_GetMouse(SDL_current_mouse);
 
     if (!mouse) {
         if (x) {