summaryrefslogtreecommitdiffstats
path: root/src/sdl-2-fix-dinput.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl-2-fix-dinput.patch')
-rw-r--r--src/sdl-2-fix-dinput.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/sdl-2-fix-dinput.patch b/src/sdl-2-fix-dinput.patch
deleted file mode 100644
index 7eeb335..0000000
--- a/src/sdl-2-fix-dinput.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-This file is part of mingw-cross-env.
-See doc/index.html for further information.
-
-This patch has been taken from:
-http://hg.libsdl.org/SDL/rev/daf9e6037596
-
-diff --git a/src/video/windx5/SDL_dx5events.c b/src/video/windx5/SDL_dx5events.c
---- a/src/video/windx5/SDL_dx5events.c
-+++ b/src/video/windx5/SDL_dx5events.c
-@@ -559,13 +559,15 @@
-
- active = (wParam && (GetForegroundWindow() == hwnd));
- if ( active ) {
-- for ( i=0; SDL_DIdev[i]; ++i ) {
-- IDirectInputDevice2_Acquire(
-+ for ( i=0; i<MAX_INPUTS; ++i ) {
-+ if (SDL_DIdev[i] != NULL)
-+ IDirectInputDevice2_Acquire(
- SDL_DIdev[i]);
- }
- } else {
-- for ( i=0; SDL_DIdev[i]; ++i ) {
-- IDirectInputDevice2_Unacquire(
-+ for ( i=0; i<MAX_INPUTS; ++i ) {
-+ if (SDL_DIdev[i] != NULL)
-+ IDirectInputDevice2_Unacquire(
- SDL_DIdev[i]);
- }
- mouse_lost = 1;
-