mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
Make initial borderless work again
Mistakenly disabled in https://github.com/ddnet/ddnet/pull/1418/files
This commit is contained in:
parent
fedb031250
commit
f85db90357
|
@ -4424,10 +4424,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
|
||||||
if(Flags & IGraphicsBackend::INITFLAG_RESIZABLE)
|
if(Flags & IGraphicsBackend::INITFLAG_RESIZABLE)
|
||||||
SdlFlags |= SDL_WINDOW_RESIZABLE;
|
SdlFlags |= SDL_WINDOW_RESIZABLE;
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONF_PLATFORM_MACOSX) // TODO: remove this when fixed in SDL
|
|
||||||
if(Flags & IGraphicsBackend::INITFLAG_BORDERLESS)
|
if(Flags & IGraphicsBackend::INITFLAG_BORDERLESS)
|
||||||
SdlFlags |= SDL_WINDOW_BORDERLESS;
|
SdlFlags |= SDL_WINDOW_BORDERLESS;
|
||||||
#endif
|
|
||||||
if(Flags & IGraphicsBackend::INITFLAG_FULLSCREEN)
|
if(Flags & IGraphicsBackend::INITFLAG_FULLSCREEN)
|
||||||
{
|
{
|
||||||
// when we are at fullscreen, we really shouldn't allow window sizes, that aren't supported by the driver
|
// when we are at fullscreen, we really shouldn't allow window sizes, that aren't supported by the driver
|
||||||
|
|
Loading…
Reference in a new issue