diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:54:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:54:08 +0300 |
commit | ef7e7319305f040a47c483b71f2e78da7a1d6149 (patch) | |
tree | 14ac10427d7c94288fcb198db5277455754589ae /src/graphicsmanager.cpp | |
parent | 12389c8441c748996962412201af9e21d66f9e55 (diff) | |
download | ManaVerse-ef7e7319305f040a47c483b71f2e78da7a1d6149.tar.gz ManaVerse-ef7e7319305f040a47c483b71f2e78da7a1d6149.tar.bz2 ManaVerse-ef7e7319305f040a47c483b71f2e78da7a1d6149.tar.xz ManaVerse-ef7e7319305f040a47c483b71f2e78da7a1d6149.zip |
Fix code style in other files.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 30d50340a..0770332d9 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -408,18 +408,15 @@ void GraphicsManager::setVideoMode() } } +#ifdef USE_SDL2 SDL_Window *GraphicsManager::createWindow(const int w, const int h, - const int bpp, const int flags) + const int bpp A_UNUSED, + 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_SDL2 SDL_Renderer *GraphicsManager::createRenderer(SDL_Window *const window, const int flags) { @@ -428,6 +425,12 @@ SDL_Renderer *GraphicsManager::createRenderer(SDL_Window *const window, SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND); return renderer; } +#else +SDL_Window *GraphicsManager::createWindow(const int w, const int h, + const int bpp, const int flags) +{ + return SDL_SetVideoMode(w, h, bpp, flags); +} #endif #ifdef USE_OPENGL |