src/SDL_compat.c
changeset 2710 44e49d3fa6cf
parent 2328 91e601d9df8b
child 2735 204be4fc2726
--- a/src/SDL_compat.c	Mon Aug 25 05:30:28 2008 +0000
+++ b/src/SDL_compat.c	Mon Aug 25 06:33:00 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) {