diff src/SDL_compat.c @ 3776:a9c2a7071874 gsoc2008_manymouse

upgraded functions
author Szymon Wilczek <kazeuser@gmail.com>
date Wed, 06 Aug 2008 08:48:43 +0000
parents 91e601d9df8b
children 204be4fc2726
line wrap: on
line diff
--- a/src/SDL_compat.c	Tue Aug 05 14:18:40 2008 +0000
+++ b/src/SDL_compat.c	Wed Aug 06 08:48:43 2008 +0000
@@ -256,7 +256,7 @@
             }
 
             selected = SDL_SelectMouse(event->wheel.which);
-            SDL_GetMouseState(&x, &y);
+            SDL_GetMouseState(selected, &x, &y);
             SDL_SelectMouse(selected);
 
             if (event->wheel.y > 0) {