aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/win32/win32-main.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2015-02-16 02:13:11 +0100
committerJohannes Schickel2015-02-16 02:13:11 +0100
commit3745ddbefd6ab401458b862d124ebe80592a88bc (patch)
tree81b5cd632d4032bb7dc5e58b3f7a2642faad4ee4 /backends/platform/sdl/win32/win32-main.cpp
parent3f22c12c56572d7c0b46e734179255062f81f45c (diff)
downloadscummvm-rg350-3745ddbefd6ab401458b862d124ebe80592a88bc.tar.gz
scummvm-rg350-3745ddbefd6ab401458b862d124ebe80592a88bc.tar.bz2
scummvm-rg350-3745ddbefd6ab401458b862d124ebe80592a88bc.zip
WIN32: Add experimental SDL2 support.
Based on changes by aquadran.
Diffstat (limited to 'backends/platform/sdl/win32/win32-main.cpp')
-rw-r--r--backends/platform/sdl/win32/win32-main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/sdl/win32/win32-main.cpp b/backends/platform/sdl/win32/win32-main.cpp
index e5b26c3ff0..c6c15c00e8 100644
--- a/backends/platform/sdl/win32/win32-main.cpp
+++ b/backends/platform/sdl/win32/win32-main.cpp
@@ -40,7 +40,9 @@
#include "base/main.h"
int __stdcall WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/, LPSTR /*lpCmdLine*/, int /*iShowCmd*/) {
+#if !SDL_VERSION_ATLEAST(2, 0, 0)
SDL_SetModuleHandle(GetModuleHandle(NULL));
+#endif
return main(__argc, __argv);
}