Leave it up to the WM where to position windows

This commit is contained in:
def 2016-05-07 15:59:40 +02:00
parent c325b08087
commit 340c4d2398

View file

@ -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;
}
}