Remove highdpi stuff

This reverts commit d234c55dfa.
This commit is contained in:
def 2018-02-06 23:21:00 +01:00
parent d234c55dfa
commit 864ff1ac74

View file

@ -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;