summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-25 19:36:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-25 23:26:55 +0300
commitd5847d54a527c41006cb4cade15d0b6346490e77 (patch)
tree5146fc48f6e2d10eb3f41f1b20eac16f66b36f28 /src/graphicsmanager.cpp
parent5b20a3d95717f75d33801c4dd2b093e106d90541 (diff)
downloadplus-d5847d54a527c41006cb4cade15d0b6346490e77.tar.gz
plus-d5847d54a527c41006cb4cade15d0b6346490e77.tar.bz2
plus-d5847d54a527c41006cb4cade15d0b6346490e77.tar.xz
plus-d5847d54a527c41006cb4cade15d0b6346490e77.zip
add partial support for software mode with SDL2.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index fb1ce3a32..d39af895d 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -374,7 +374,9 @@ SDL_Renderer *GraphicsManager::createRenderer(SDL_Window *const window,
const int flags)
{
// +++ need use different drivers and different flags
- return SDL_CreateRenderer(window, -1, flags);
+ SDL_Renderer *const renderer = SDL_CreateRenderer(window, -1, flags);
+ SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND);
+ return renderer;
}
#endif