From 864ff1ac7451d2fee9ffbbfc307385e6374065ff Mon Sep 17 00:00:00 2001 From: def Date: Tue, 6 Feb 2018 23:21:00 +0100 Subject: [PATCH] Remove highdpi stuff This reverts commit d234c55dfad708cb020d57ee6b6166259238ed50. --- src/engine/client/backend_sdl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index 1ee1ce14c..5e54f50db 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -1627,7 +1627,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt #ifdef __ANDROID__ *pWidth = *pDesktopWidth; *pHeight = *pDesktopHeight; -#elif defined(CONF_FAMILY_MACOSX) +/* +#elif defined(CONF_FAMILY_WINDOWS) if(*pWidth == 0 || *pHeight == 0) { *pWidth = *pDesktopWidth; @@ -1643,6 +1644,7 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt *pHeight = *pHeight * 96 / dpi; } } +*/ #else if(*pWidth == 0 || *pHeight == 0) { @@ -1652,7 +1654,7 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt #endif // set flags - int SdlFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN | SDL_WINDOW_ALLOW_HIGHDPI; + int SdlFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN; #if defined(SDL_VIDEO_DRIVER_X11) if(Flags&IGraphicsBackend::INITFLAG_RESIZABLE) SdlFlags |= SDL_WINDOW_RESIZABLE;