sdl.c
changeset 1808 29e271b6c99a
parent 1807 868a095fca4c
child 1810 8a574d47872b
equal deleted inserted replaced
1807:868a095fca4c 1808:29e271b6c99a
   634 	return true;
   634 	return true;
   635 }
   635 }
   636 
   636 
   637 void ToggleFullScreen(bool full_screen)
   637 void ToggleFullScreen(bool full_screen)
   638 {
   638 {
   639 	_fullscreen ^= full_screen;
   639 	_fullscreen = full_screen;
   640 	GetVideoModes(); // get the list of available video modes
   640 	GetVideoModes(); // get the list of available video modes
   641 	if (!_video_driver->change_resolution(_cur_resolution[0], _cur_resolution[1]))
   641 	if (!_video_driver->change_resolution(_cur_resolution[0], _cur_resolution[1]))
   642 		_fullscreen ^= true; // switching resolution failed, put back full_screen to original status
   642 		_fullscreen ^= true; // switching resolution failed, put back full_screen to original status
   643 }
   643 }
   644 
   644