summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 0d66dc3a7..15eb25af3 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -382,7 +382,12 @@ bool GraphicsManager::getAllVideoModes(StringVect &modeList)
SDL_Window *GraphicsManager::createWindow(const int w, const int h,
const int bpp, const int flags)
{
+#ifdef USE_SDL2
+ return SDL_CreateWindow("ManaPlus", SDL_WINDOWPOS_UNDEFINED,
+ SDL_WINDOWPOS_UNDEFINED, w, h, flags);
+#else
return SDL_SetVideoMode(w, h, bpp, flags);
+#endif
}
#ifdef USE_OPENGL