diff --git a/src/pc/gfx/gfx_sdl2.c b/src/pc/gfx/gfx_sdl2.c index 4d907893af..103b7fe8b7 100644 --- a/src/pc/gfx/gfx_sdl2.c +++ b/src/pc/gfx/gfx_sdl2.c @@ -196,6 +196,11 @@ static void gfx_sdl_reset_dimension_and_pos(void) { } static void gfx_sdl_init(const char *window_title) { + #if SDL_VERSION_ATLEAST(2,24,0) + /* fix DPI scaling issues on Windows */ + SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2"); + #endif + SDL_Init(SDL_INIT_VIDEO); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);