From 78dc5aa959607bbd20af50e3944de2b36d9fd306 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 15 Jul 2017 15:31:53 +0200 Subject: [PATCH] Another Windows DPI try --- other/manifest/DDNet.rc | 3 +-- src/engine/client/backend_sdl.cpp | 13 ------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/other/manifest/DDNet.rc b/other/manifest/DDNet.rc index 7251b3760..83a41f30c 100644 --- a/other/manifest/DDNet.rc +++ b/other/manifest/DDNet.rc @@ -1,2 +1 @@ -#include "winuser.h" -2 RT_MANIFEST "DDNet.exe.manifest" +1 24 "DDNet.exe.manifest" diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index 48f91eef0..471a8c2dc 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -597,19 +597,6 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt #ifdef __ANDROID__ *pWidth = *pDesktopWidth; *pHeight = *pDesktopHeight; -#elif defined(CONF_FAMILY_WINDOWS) - if(*pWidth == 0 || *pHeight == 0) - { - *pWidth = *pDesktopWidth; - *pHeight = *pDesktopHeight; - } - else - { - float dpi; - SDL_GetDisplayDPI(0, NULL, &dpi, NULL); - *pWidth = *pWidth * 96 / (int)dpi; - *pHeight = *pHeight * 96 / (int)dpi; - } #else if(*pWidth == 0 || *pHeight == 0) {