summaryrefslogtreecommitdiff
path: root/src/resources/sdlscreenshothelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/sdlscreenshothelper.cpp')
-rw-r--r--src/resources/sdlscreenshothelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/sdlscreenshothelper.cpp b/src/resources/sdlscreenshothelper.cpp
index 12256e902..2fa9f3e2d 100644
--- a/src/resources/sdlscreenshothelper.cpp
+++ b/src/resources/sdlscreenshothelper.cpp
@@ -47,7 +47,7 @@ void SdlScreenshotHelper::prepare()
SDL_Surface *SdlScreenshotHelper::getScreenshot()
{
- if (!mainGraphics)
+ if (mainGraphics == nullptr)
return nullptr;
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
@@ -69,7 +69,7 @@ SDL_Surface *SdlScreenshotHelper::getScreenshot()
rmask, gmask, bmask, amask);
#ifndef USE_SDL2
- if (screenshot)
+ if (screenshot != nullptr)
SDL_BlitSurface(mainGraphics->mWindow, nullptr, screenshot, nullptr);
#endif // USE_SDL2