mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
parent
d234c55dfa
commit
864ff1ac74
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue