diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-21 23:58:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:15 +0300 |
commit | bb0281c87995e11dc1cac95009a5253356d94d1a (patch) | |
tree | e8b0a1f0f1560dd5d4308f9f7a2d48264ac0ea45 /src/graphicsmanager.cpp | |
parent | e5521effc043cdf9d781816c0d72bd17830e34f8 (diff) | |
download | manaplus-bb0281c87995e11dc1cac95009a5253356d94d1a.tar.gz manaplus-bb0281c87995e11dc1cac95009a5253356d94d1a.tar.bz2 manaplus-bb0281c87995e11dc1cac95009a5253356d94d1a.tar.xz manaplus-bb0281c87995e11dc1cac95009a5253356d94d1a.zip |
some SDL2 complilation fixes.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 5 |
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 |