diff --git a/client/SDL/SDL2/sdl_disp.cpp b/client/SDL/SDL2/sdl_disp.cpp index 56e38b4c2..126902935 100644 --- a/client/SDL/SDL2/sdl_disp.cpp +++ b/client/SDL/SDL2/sdl_disp.cpp @@ -33,8 +33,8 @@ #include #define TAG CLIENT_TAG("sdl.disp") -#define RESIZE_MIN_DELAY 200 /* minimum delay in ms between two resizes */ -#define MAX_RETRIES 5 +static constexpr UINT64 RESIZE_MIN_DELAY = 200; /* minimum delay in ms between two resizes */ +static constexpr unsigned MAX_RETRIES = 5; BOOL sdlDispContext::settings_changed() { diff --git a/client/SDL/SDL3/sdl_disp.cpp b/client/SDL/SDL3/sdl_disp.cpp index eac2d9d1d..d85b34b7b 100644 --- a/client/SDL/SDL3/sdl_disp.cpp +++ b/client/SDL/SDL3/sdl_disp.cpp @@ -33,8 +33,8 @@ #include #define TAG CLIENT_TAG("sdl.disp") -#define RESIZE_MIN_DELAY 200 /* minimum delay in ms between two resizes */ -#define MAX_RETRIES 5 +static constexpr UINT64 RESIZE_MIN_DELAY = 200; /* minimum delay in ms between two resizes */ +static constexpr unsigned MAX_RETRIES = 5; BOOL sdlDispContext::settings_changed() {