From ce08f071b16d1ef6b6b5d21beb0a0802e424612a Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 14 Dec 2025 02:23:07 +0300 Subject: [PATCH] engine: platform: sdl2: use permonitor DPI awareness to avoid unneeded window titlebar resize --- engine/platform/sdl2/sys_sdl2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/platform/sdl2/sys_sdl2.c b/engine/platform/sdl2/sys_sdl2.c index 0bfe0f57..5f168f2e 100644 --- a/engine/platform/sdl2/sys_sdl2.c +++ b/engine/platform/sdl2/sys_sdl2.c @@ -107,7 +107,7 @@ void SDLash_Init( const char *basedir ) SDL_LogSetAllPriority( SDL_LOG_PRIORITY_ERROR ); #if XASH_WIN32 - SDL_SetHint( SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2" ); + SDL_SetHint( SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitor" ); // TODO: disabled for now // try to test it better when we'll come back to highdpi support issue // SDL_SetHint( SDL_HINT_WINDOWS_DPI_SCALING, "1" );