mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: platform: sdl2: allow DPI scaling on Windows
This commit is contained in:
@@ -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 ) )
|
||||
|
||||
Reference in New Issue
Block a user