Center SDL loading windows in X11.

This commit is contained in:
Glenn Maynard
2004-01-03 09:31:44 +00:00
parent f7f40175ec
commit 25aac0088d
@@ -9,6 +9,13 @@
LoadingWindow_SDL::LoadingWindow_SDL()
{
/* There's no consistent way to hint SDL that we want a centered
* window. X11 way: */
#if defined(unix)
static char center[]="SDL_VIDEO_CENTERED=1";
putenv( center );
#endif
/* Initialize the SDL library */
if( SDL_InitSubSystem(SDL_INIT_VIDEO) < 0 )
RageException::Throw( "Couldn't initialize SDL: %s", SDL_GetError() );