summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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