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__ #ifdef __ANDROID__
*pWidth = *pDesktopWidth; *pWidth = *pDesktopWidth;
*pHeight = *pDesktopHeight; *pHeight = *pDesktopHeight;
#elif defined(CONF_FAMILY_MACOSX) /*
#elif defined(CONF_FAMILY_WINDOWS)
if(*pWidth == 0 || *pHeight == 0) if(*pWidth == 0 || *pHeight == 0)
{ {
*pWidth = *pDesktopWidth; *pWidth = *pDesktopWidth;
@ -1643,6 +1644,7 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
*pHeight = *pHeight * 96 / dpi; *pHeight = *pHeight * 96 / dpi;
} }
} }
*/
#else #else
if(*pWidth == 0 || *pHeight == 0) if(*pWidth == 0 || *pHeight == 0)
{ {
@ -1652,7 +1654,7 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
#endif #endif
// set flags // 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 defined(SDL_VIDEO_DRIVER_X11)
if(Flags&IGraphicsBackend::INITFLAG_RESIZABLE) if(Flags&IGraphicsBackend::INITFLAG_RESIZABLE)
SdlFlags |= SDL_WINDOW_RESIZABLE; SdlFlags |= SDL_WINDOW_RESIZABLE;