mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +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(
|
m_pWindow = SDL_CreateWindow(
|
||||||
pName,
|
pName,
|
||||||
SDL_WINDOWPOS_CENTERED_DISPLAY(g_Config.m_GfxScreen),
|
SDL_WINDOWPOS_UNDEFINED_DISPLAY(g_Config.m_GfxScreen),
|
||||||
SDL_WINDOWPOS_CENTERED_DISPLAY(g_Config.m_GfxScreen),
|
SDL_WINDOWPOS_UNDEFINED_DISPLAY(g_Config.m_GfxScreen),
|
||||||
*pWidth,
|
*pWidth,
|
||||||
*pHeight,
|
*pHeight,
|
||||||
SdlFlags);
|
SdlFlags);
|
||||||
|
@ -750,8 +750,8 @@ bool CGraphicsBackend_SDL_OpenGL::SetWindowScreen(int Index)
|
||||||
if(SDL_GetDisplayBounds(Index, &ScreenPos) == 0)
|
if(SDL_GetDisplayBounds(Index, &ScreenPos) == 0)
|
||||||
{
|
{
|
||||||
SDL_SetWindowPosition(m_pWindow,
|
SDL_SetWindowPosition(m_pWindow,
|
||||||
SDL_WINDOWPOS_CENTERED_DISPLAY(Index),
|
SDL_WINDOWPOS_UNDEFINED_DISPLAY(Index),
|
||||||
SDL_WINDOWPOS_CENTERED_DISPLAY(Index));
|
SDL_WINDOWPOS_UNDEFINED_DISPLAY(Index));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue