mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Leave it up to the WM where to position windows
This commit is contained in:
parent
c325b08087
commit
340c4d2398
|
@ -641,8 +641,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
|
|||
|
||||
m_pWindow = SDL_CreateWindow(
|
||||
pName,
|
||||
SDL_WINDOWPOS_CENTERED_DISPLAY(g_Config.m_GfxScreen),
|
||||
SDL_WINDOWPOS_CENTERED_DISPLAY(g_Config.m_GfxScreen),
|
||||
SDL_WINDOWPOS_UNDEFINED_DISPLAY(g_Config.m_GfxScreen),
|
||||
SDL_WINDOWPOS_UNDEFINED_DISPLAY(g_Config.m_GfxScreen),
|
||||
*pWidth,
|
||||
*pHeight,
|
||||
SdlFlags);
|
||||
|
@ -750,8 +750,8 @@ bool CGraphicsBackend_SDL_OpenGL::SetWindowScreen(int Index)
|
|||
if(SDL_GetDisplayBounds(Index, &ScreenPos) == 0)
|
||||
{
|
||||
SDL_SetWindowPosition(m_pWindow,
|
||||
SDL_WINDOWPOS_CENTERED_DISPLAY(Index),
|
||||
SDL_WINDOWPOS_CENTERED_DISPLAY(Index));
|
||||
SDL_WINDOWPOS_UNDEFINED_DISPLAY(Index),
|
||||
SDL_WINDOWPOS_UNDEFINED_DISPLAY(Index));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue