diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-22 14:47:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:15 +0300 |
commit | 5e4fcb8a6036746ec1b500297fa55989a80094b4 (patch) | |
tree | 915d788dcaf3bc39bed6985236fb879c3c93f6cb /src/graphicsmanager.cpp | |
parent | 2480ea4cc668ff99007dd6fb8b44911eea5d5287 (diff) | |
download | mv-5e4fcb8a6036746ec1b500297fa55989a80094b4.tar.gz mv-5e4fcb8a6036746ec1b500297fa55989a80094b4.tar.bz2 mv-5e4fcb8a6036746ec1b500297fa55989a80094b4.tar.xz mv-5e4fcb8a6036746ec1b500297fa55989a80094b4.zip |
final SDL2 compilation fixes.
now it can be compiled, but still not works.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 25131957f..0e0ac4fa3 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -360,6 +360,15 @@ SDL_Window *GraphicsManager::createWindow(const int w, const int h, #endif } +#ifdef USE_SDL2 +SDL_Renderer *GraphicsManager::createRenderer(SDL_Window *const window, + const int flags) +{ + // +++ need use different drivers and different flags + return SDL_CreateRenderer(window, -1, flags); +} +#endif + #ifdef USE_OPENGL void GraphicsManager::updateExtensions() { |