diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2012-04-12 15:23:12 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2012-04-12 15:23:12 (GMT) |
commit | 1f86817ee82b162a1a5bd495886183ca81a68ba7 (patch) | |
tree | 3116df65f83174295af8c6315a36583f460fe9e0 /src/sdl-2-fix-dinput.patch | |
parent | 0f01e5e88f720fe5073c88f5cf1803d5c283904d (diff) | |
parent | e513258770cdc39c0d6a904437f191aa61b3175c (diff) | |
download | mxe-2.22.zip mxe-2.22.tar.gz mxe-2.22.tar.bz2 |
Merge all well-tested changes into the stable branchv2.22
Diffstat (limited to 'src/sdl-2-fix-dinput.patch')
-rw-r--r-- | src/sdl-2-fix-dinput.patch | 30 |
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; - |