From bb0281c87995e11dc1cac95009a5253356d94d1a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Aug 2013 23:58:06 +0300 Subject: some SDL2 complilation fixes. --- src/graphicsmanager.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/graphicsmanager.cpp') 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 -- cgit v1.2.3-70-g09d2