aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/global.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/global.gd b/client/global.gd
index 9c6e75c4..2d0c0cb2 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -111,7 +111,8 @@ func update_fullscreen():
match get_setting("fullscreen"):
0: pass
1: DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
- 2: DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
+ 2: if DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_FULLSCREEN:
+ DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
func save_profile():
save_dict("user://profile", profile)