3078: Make initial borderless work again r=heinrich5991 a=def-

Mistakenly disabled in https://github.com/ddnet/ddnet/pull/1418

Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2020-10-12 17:42:03 +00:00 committed by GitHub
commit 3244eba39d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4419,10 +4419,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
if(Flags & IGraphicsBackend::INITFLAG_RESIZABLE)
SdlFlags |= SDL_WINDOW_RESIZABLE;
#endif
#if defined(CONF_PLATFORM_MACOSX) // TODO: remove this when fixed in SDL
if(Flags & IGraphicsBackend::INITFLAG_BORDERLESS)
SdlFlags |= SDL_WINDOW_BORDERLESS;
#endif
if(Flags & IGraphicsBackend::INITFLAG_FULLSCREEN)
{
// when we are at fullscreen, we really shouldn't allow window sizes, that aren't supported by the driver