From 26c9c39004b52480d68b0f214bdad248ea39982b Mon Sep 17 00:00:00 2001 From: def Date: Sat, 30 Apr 2016 03:32:01 +0200 Subject: [PATCH] Disable HighDPI displays --- src/engine/client/backend_sdl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index 09a7b4411..14d616131 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -622,6 +622,9 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 0); } + // Might fix problems with Windows HighDPI scaling + SDL_SetHint(SDL_HINT_VIDEO_HIGHDPI_DISABLED, "1"); + m_pWindow = SDL_CreateWindow( pName, SDL_WINDOWPOS_CENTERED_DISPLAY(g_Config.m_GfxScreen),