diff --git a/Source/Game/Runtime.cpp b/Source/Game/Runtime.cpp index 12af58b2..cf654f5c 100644 --- a/Source/Game/Runtime.cpp +++ b/Source/Game/Runtime.cpp @@ -1064,6 +1064,10 @@ int SDL_main(int argc, char *argv[]) if (sdlresult < 0) { ErrH.Abort("Error initializing SDLNet", XERR_CRITICAL, sdlresult, SDLNet_GetError()); } + + //Set DPI awarenes + SDL_SetHintWithPriority(SDL_HINT_WINDOWS_DPI_AWARENESS, "system", SDL_HINT_OVERRIDE); + SDL_SetHintWithPriority(SDL_HINT_WINDOWS_DPI_SCALING, "0", SDL_HINT_OVERRIDE); //Do game content detection detectGameContent();