split out SetupSDL

This commit is contained in:
Glenn Maynard
2004-06-14 05:18:09 +00:00
parent 7fd8f3d3cc
commit e534493c42
3 changed files with 19 additions and 7 deletions
+13
View File
@@ -335,6 +335,19 @@ void SDL_UpdateHWnd()
#endif
}
void SetupSDL()
{
static bool bDone = false;
if( bDone )
return;
bDone = true;
/* Start SDL (with no subsystems), to make sure we don't use SDL's error handler. */
SDL_Init( SDL_INIT_NOPARACHUTE );
/* Clean up on exit. */
atexit( SDL_Quit );
}
/*
* (c) 2002-2004 Glenn Maynard