summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-21 23:58:06 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:15 +0300
commitbb0281c87995e11dc1cac95009a5253356d94d1a (patch)
treee8b0a1f0f1560dd5d4308f9f7a2d48264ac0ea45 /src/graphicsmanager.cpp
parente5521effc043cdf9d781816c0d72bd17830e34f8 (diff)
downloadplus-bb0281c87995e11dc1cac95009a5253356d94d1a.tar.gz
plus-bb0281c87995e11dc1cac95009a5253356d94d1a.tar.bz2
plus-bb0281c87995e11dc1cac95009a5253356d94d1a.tar.xz
plus-bb0281c87995e11dc1cac95009a5253356d94d1a.zip
some SDL2 complilation fixes.
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