diff options
Diffstat (limited to 'src')
-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; } |