sdl: don't needlessly kill the video and input subsystems before control configuration

This commit is contained in:
plombo 2011-03-22 22:53:45 +00:00
parent 994ffdead9
commit bd87146cca
1 changed files with 1 additions and 12 deletions

View File

@ -763,15 +763,8 @@ int
ButtonConfigBegin()
{
SDL_Surface *screen;
// XXX soules - why are we doing this right before KillVideo()?
SDL_QuitSubSystem(SDL_INIT_VIDEO);
// shut down the video and joystick subsystems
bcpv=KillVideo();
bcpj=KillJoysticks();
// reactivate the video subsystem
// activate the video subsystem if it is not already initialized
if(!SDL_WasInit(SDL_INIT_VIDEO)) {
if(!bcpv) {
InitVideo(GameInfo);
@ -800,10 +793,6 @@ ButtonConfigBegin()
SDL_WM_SetCaption("Button Config",0);
}
}
// XXX soules - why did we shut this down?
// initialize the joystick subsystem
InitJoysticks();
return(1);
}