summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-05-14 21:55:54 +0000
committerDarkvater <Darkvater@openttd.org>2005-05-14 21:55:54 +0000
commit529d280167697be0ec5b0b37fbd6068bf0eff1b8 (patch)
treee16b792403f888b4273880163ba13113d56712fb
parenta77e736431d847ad322bc808a59b9ad821461fd8 (diff)
downloadopenttd-529d280167697be0ec5b0b37fbd6068bf0eff1b8.tar.xz
(svn r2312) - Fix (regression): changing to/from fullscreen got broken with SDL.
-rw-r--r--sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index f8f3e650e..e91063c7a 100644
--- a/sdl.c
+++ b/sdl.c
@@ -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