sdl: revert revision 2160; fixes --inputcfg

This commit is contained in:
plombo 2011-04-21 00:26:19 +00:00
parent c9678317a4
commit c7096f4d4a
1 changed files with 12 additions and 1 deletions

View File

@ -777,7 +777,14 @@ ButtonConfigBegin()
{
SDL_Surface *screen;
// activate the video subsystem if it is not already initialized
// 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
if(!SDL_WasInit(SDL_INIT_VIDEO)) {
if(!bcpv) {
InitVideo(GameInfo);
@ -807,6 +814,10 @@ ButtonConfigBegin()
}
}
// XXX soules - why did we shut this down?
// initialize the joystick subsystem
InitJoysticks();
return(1);
}