equal
deleted
inserted
replaced
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 |