summaryrefslogtreecommitdiff
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
parent78fb544aeb8761e8d554487487bc27e610822e2d (diff)
downloadplus-476953c1b87ef343b930067d79135d14861bbc2d.tar.gz
plus-476953c1b87ef343b930067d79135d14861bbc2d.tar.bz2
plus-476953c1b87ef343b930067d79135d14861bbc2d.tar.xz
plus-476953c1b87ef343b930067d79135d14861bbc2d.zip
Fix compilation with SDL2.
-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;
}