diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-16 01:51:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-16 01:51:52 +0300 |
commit | 476953c1b87ef343b930067d79135d14861bbc2d (patch) | |
tree | b6fed99656611e1fba084c3f32d2546680dfe52c /src/resources | |
parent | 78fb544aeb8761e8d554487487bc27e610822e2d (diff) | |
download | manaplus-476953c1b87ef343b930067d79135d14861bbc2d.tar.gz manaplus-476953c1b87ef343b930067d79135d14861bbc2d.tar.bz2 manaplus-476953c1b87ef343b930067d79135d14861bbc2d.tar.xz manaplus-476953c1b87ef343b930067d79135d14861bbc2d.zip |
Fix compilation with SDL2.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/sdlscreenshothelper.cpp | 2 |
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; } |