summaryrefslogtreecommitdiff
path: root/src/resources/sdl2imagehelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/sdl2imagehelper.h')
-rw-r--r--src/resources/sdl2imagehelper.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/sdl2imagehelper.h b/src/resources/sdl2imagehelper.h
index 59cec36ea..aa40aa065 100644
--- a/src/resources/sdl2imagehelper.h
+++ b/src/resources/sdl2imagehelper.h
@@ -67,10 +67,10 @@ class SDLImageHelper final : public ImageHelper
SDL_Surface *const surface)
const override final;
- static void SDLSetEnableAlphaCache(const bool n)
+ constexpr static void SDLSetEnableAlphaCache(const bool n) noexcept2
{ mEnableAlphaCache = n; }
- static bool SDLGetEnableAlphaCache() A_WARN_UNUSED
+ static bool SDLGetEnableAlphaCache() noexcept2 A_WARN_UNUSED
{ return mEnableAlphaCache; }
static SDL_Surface* SDLDuplicateSurface(SDL_Surface *const tmpImage)
@@ -81,7 +81,8 @@ class SDLImageHelper final : public ImageHelper
SDL_Surface *restrict const dst,
SDL_Rect *restrict const dstrect);
- static void setRenderer(SDL_Renderer *const renderer)
+ constexpr static void setRenderer(SDL_Renderer *const renderer)
+ noexcept2
{ mRenderer = renderer; }
protected: