diff options
author | bmdhacks <bmd@bmdhacks.com> | 2025-02-15 11:40:33 -0800 |
---|---|---|
committer | bmdhacks <bmd@bmdhacks.com> | 2025-02-15 11:40:33 -0800 |
commit | 6150855f495fb8dd9a893b811b79e17b22a2f701 (patch) | |
tree | d0d8fe48ea7605aa2386fe3f724729ba8da24215 /source/application | |
parent | eedd20da00e873ae188634f5e9af4a2e9efe8607 (diff) |
inline a constant so that debug builds work
Diffstat (limited to 'source/application')
-rw-r--r-- | source/application/StarMainApplication_sdl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index c3ffbf0..941b344 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -853,7 +853,7 @@ private: } } - static const size_t MaxCursorSize = 128; + inline static const size_t MaxCursorSize = 128; bool setCursorImage(const String& id, const ImageConstPtr& image, unsigned scale, const Vec2I& offset) { auto imageSize = image->size().piecewiseMultiply(Vec2U::filled(scale)); if (!m_cursorHardware || !scale || imageSize.max() > MaxCursorSize || imageSize.product() > square(MaxCursorSize)) { |