summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-13 21:54:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-13 21:54:39 +0300
commit86b19d64c2692665aba33e44ee5db6cbf36b6342 (patch)
tree93d91c84258f9b76ab29ab51119bbc0044d729a4 /src/graphicsmanager.cpp
parenta45303dc06c74735389607e5b281bb69543547ed (diff)
downloadmv-86b19d64c2692665aba33e44ee5db6cbf36b6342.tar.gz
mv-86b19d64c2692665aba33e44ee5db6cbf36b6342.tar.bz2
mv-86b19d64c2692665aba33e44ee5db6cbf36b6342.tar.xz
mv-86b19d64c2692665aba33e44ee5db6cbf36b6342.zip
Add option to select any existing SDL renderer drivers for SDL2 default mode.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index dd730af82..108facc73 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -620,7 +620,7 @@ SDL_Window *GraphicsManager::createWindow(const int w, const int h,
SDL_Renderer *GraphicsManager::createRenderer(SDL_Window *const window,
const int flags)
{
- // +++ need use different drivers and different flags
+ SDL::setRendererHint(config.getStringValue("sdlDriver"));
SDL_Renderer *const renderer = SDL_CreateRenderer(window, -1, flags);
SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND);
return renderer;