summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-16 02:04:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-16 02:51:07 +0300
commit13bc3f6e9db3ec213286ded855c8a8095efbe70a (patch)
tree5639d9821f3cbd27bb2c7f124c1c37a9dc5e236e /src/graphicsmanager.cpp
parent476953c1b87ef343b930067d79135d14861bbc2d (diff)
downloadplus-13bc3f6e9db3ec213286ded855c8a8095efbe70a.tar.gz
plus-13bc3f6e9db3ec213286ded855c8a8095efbe70a.tar.bz2
plus-13bc3f6e9db3ec213286ded855c8a8095efbe70a.tar.xz
plus-13bc3f6e9db3ec213286ded855c8a8095efbe70a.zip
Add sdl2softwarescreenshothelper.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index efaffd2d2..eea4ad67b 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -75,6 +75,7 @@
#include "render/sdl2softwaregraphics.h"
#include "resources/sdl2softwareimagehelper.h"
+#include "resources/sdl2softwarescreenshothelper.h"
#include "resources/surfaceimagehelper.h"
#endif
@@ -260,7 +261,7 @@ int GraphicsManager::detectGraphics()
imageHelper = new SDL2SoftwareImageHelper; \
surfaceImageHelper = new SurfaceImageHelper; \
mainGraphics = new SDL2SoftwareGraphics; \
- screenshortHelper = new SdlScreenshotHelper;
+ screenshortHelper = new Sdl2SoftwareScreenshotHelper;
#define RENDER_SDL2_DEFAULT_INIT \
imageHelper = new SDLImageHelper; \
surfaceImageHelper = new SurfaceImageHelper; \
@@ -391,7 +392,6 @@ void GraphicsManager::createRenderers()
// Setup image loading for the right image format
ImageHelper::setOpenGlMode(useOpenGL);
- screenshortHelper = new OpenGLScreenshotHelper;
// Create the graphics context
switch (useOpenGL)
{
@@ -411,10 +411,12 @@ void GraphicsManager::createRenderers()
imageHelper = new SDL2SoftwareImageHelper;
surfaceImageHelper = new SurfaceImageHelper;
mainGraphics = new SDL2SoftwareGraphics;
+ screenshortHelper = new Sdl2SoftwareScreenshotHelper;
#else
imageHelper = new SDLImageHelper;
surfaceImageHelper = imageHelper;
mainGraphics = new SDLGraphics;
+ screenshortHelper = new SdlScreenshotHelper;
#endif
break;
#ifdef USE_SDL2
@@ -423,6 +425,7 @@ void GraphicsManager::createRenderers()
surfaceImageHelper = new SurfaceImageHelper;
mainGraphics = new SDLGraphics;
mainGraphics->setRendererFlags(SDL_RENDERER_ACCELERATED);
+ screenshortHelper = new SdlScreenshotHelper;
break;
#endif
};