mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Still hide window at start (fixes fullscreen in Gnome)
This commit is contained in:
parent
9bd30ce447
commit
642e7f7671
|
@ -602,7 +602,7 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
|
||||||
}
|
}
|
||||||
|
|
||||||
// set flags
|
// set flags
|
||||||
int SdlFlags = SDL_WINDOW_OPENGL;
|
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;
|
||||||
|
@ -688,6 +688,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
|
||||||
RunBuffer(&CmdBuffer);
|
RunBuffer(&CmdBuffer);
|
||||||
WaitForIdle();
|
WaitForIdle();
|
||||||
|
|
||||||
|
SDL_ShowWindow(m_pWindow);
|
||||||
|
|
||||||
// return
|
// return
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue