[client,sdl] use constexpr instead of defines

This commit is contained in:
Armin Novak 2024-09-18 11:05:18 +02:00 committed by akallabeth
parent c509aabc08
commit 02b98e9287
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
2 changed files with 4 additions and 4 deletions

View File

@ -33,8 +33,8 @@
#include <freerdp/log.h>
#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()
{

View File

@ -33,8 +33,8 @@
#include <freerdp/log.h>
#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()
{