summaryrefslogtreecommitdiff
path: root/src/resources/sdlscreenshothelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-16 01:51:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-16 01:51:52 +0300
commit476953c1b87ef343b930067d79135d14861bbc2d (patch)
treeb6fed99656611e1fba084c3f32d2546680dfe52c /src/resources/sdlscreenshothelper.cpp
parent78fb544aeb8761e8d554487487bc27e610822e2d (diff)
downloadmanaverse-476953c1b87ef343b930067d79135d14861bbc2d.tar.gz
manaverse-476953c1b87ef343b930067d79135d14861bbc2d.tar.bz2
manaverse-476953c1b87ef343b930067d79135d14861bbc2d.tar.xz
manaverse-476953c1b87ef343b930067d79135d14861bbc2d.zip
Fix compilation with SDL2.
Diffstat (limited to 'src/resources/sdlscreenshothelper.cpp')
-rw-r--r--src/resources/sdlscreenshothelper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/sdlscreenshothelper.cpp b/src/resources/sdlscreenshothelper.cpp
index eff32e303..3efd10d1a 100644
--- a/src/resources/sdlscreenshothelper.cpp
+++ b/src/resources/sdlscreenshothelper.cpp
@@ -64,8 +64,10 @@ SDL_Surface *SdlScreenshotHelper::getScreenshot()
24,
rmask, gmask, bmask, amask);
+#ifndef USE_SDL2
if (screenshot)
SDL_BlitSurface(mainGraphics->mWindow, nullptr, screenshot, nullptr);
+#endif
return screenshot;
}