summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r--src/resources/sdlimagehelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp
index 5459062f9..21bc75b0b 100644
--- a/src/resources/sdlimagehelper.cpp
+++ b/src/resources/sdlimagehelper.cpp
@@ -266,7 +266,7 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage)
}
else
{
- if (SDL_ALPHA_OPAQUE != 255)
+ ifconstexpr (SDL_ALPHA_OPAQUE != 255)
{
hasAlpha = true;
memset(alphaChannel, SDL_ALPHA_OPAQUE, sz);
@@ -275,7 +275,7 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage)
}
else
{
- if (SDL_ALPHA_OPAQUE != 255)
+ ifconstexpr (SDL_ALPHA_OPAQUE != 255)
{
hasAlpha = true;
memset(alphaChannel, SDL_ALPHA_OPAQUE, sz);