engine: platform: sdl2: allow DPI scaling on Windows

This commit is contained in:
Alibek Omarov
2025-12-09 19:22:40 +05:00
parent 2b7773d933
commit 09a68bbebd

View File

@@ -108,6 +108,7 @@ void SDLash_Init( const char *basedir )
#if XASH_WIN32
SDL_SetHint( SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2" );
SDL_SetHint( SDL_HINT_WINDOWS_DPI_SCALING, "1" );
#endif // XASH_WIN32
if( SDL_Init( SDL_INIT_TIMER | SDL_INIT_VIDEO | SDL_INIT_EVENTS ) )