mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
cleaned up centering the window
This commit is contained in:
parent
2a96c6d247
commit
f79c117f9e
|
@ -628,11 +628,6 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int Screen, int *pWidth
|
|||
dbg_msg("gfx", "unable to init SDL video: %s", SDL_GetError());
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef CONF_FAMILY_WINDOWS
|
||||
if(!getenv("SDL_VIDEO_WINDOW_POS") && !getenv("SDL_VIDEO_CENTERED")) // ignore_convention
|
||||
putenv("SDL_VIDEO_WINDOW_POS=center"); // ignore_convention
|
||||
#endif
|
||||
}
|
||||
|
||||
SDL_Rect ScreenBounds;
|
||||
|
@ -681,8 +676,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int Screen, int *pWidth
|
|||
|
||||
m_pWindow = SDL_CreateWindow(
|
||||
pName,
|
||||
SDL_WINDOWPOS_UNDEFINED_DISPLAY(0),
|
||||
SDL_WINDOWPOS_UNDEFINED_DISPLAY(0),
|
||||
SDL_WINDOWPOS_CENTERED,
|
||||
SDL_WINDOWPOS_CENTERED,
|
||||
*pWidth,
|
||||
*pHeight,
|
||||
SdlFlags);
|
||||
|
|
Loading…
Reference in a new issue