Initial band-aids on SDL_GetMouseState() API breakage. More work to come.
Fixes Bugzilla #758. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404334
This commit is contained in:
parent
691ee6f7c0
commit
8b304825b5
5 changed files with 6 additions and 6 deletions
|
@ -285,7 +285,7 @@ SDL_CompatEventFilter(void *userdata, SDL_Event * event)
|
|||
}
|
||||
|
||||
selected = SDL_SelectMouse(event->wheel.which);
|
||||
SDL_GetMouseState(selected, &x, &y);
|
||||
SDL_GetMouseState(&x, &y);
|
||||
SDL_SelectMouse(selected);
|
||||
|
||||
if (event->wheel.y > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue