# HG changeset patch # User Darkvater # Date 2005-05-14 21:55:54 # Node ID 381286f940318867626ce8e1d2620634b2388a3b # Parent 3decab76d0db3b393b3a5eff8d804c8963270edb (svn r2312) - Fix (regression): changing to/from fullscreen got broken with SDL. diff --git a/sdl.c b/sdl.c --- a/sdl.c +++ b/sdl.c @@ -636,7 +636,7 @@ static bool SdlVideoChangeRes(int w, int 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