engine: platform: sdl2: use permonitor DPI awareness to avoid unneeded window titlebar resize

This commit is contained in:
Alibek Omarov
2025-12-14 02:23:07 +03:00
parent e102857735
commit ce08f071b1

View File

@@ -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" );