1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-14 01:59:09 +00:00

(svn r2312) - Fix (regression): changing to/from fullscreen got broken with SDL.

This commit is contained in:
Darkvater
2005-05-14 21:55:54 +00:00
parent 0269361b28
commit 32bb69ef1c

2
sdl.c
View File

@@ -636,7 +636,7 @@ static bool SdlVideoChangeRes(int w, int h)
void ToggleFullScreen(bool full_screen)
{
_fullscreen ^= full_screen;
_fullscreen = full_screen;
GetVideoModes(); // get the list of available video modes
if (!_video_driver->change_resolution(_cur_resolution[0], _cur_resolution[1]))
_fullscreen ^= true; // switching resolution failed, put back full_screen to original status