diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-07-05 12:54:31 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-07-05 12:54:31 +0200 |
| commit | dc9995e412ac73d998993d1f4bce66a31682b6aa (patch) | |
| tree | 9ea61cc07e74fc9147794fca6713bfdb5279b3ec | |
| parent | da27f625a556d2dcfe79efdff982ee49d1e4b511 (diff) | |
| download | hurrycurry-dc9995e412ac73d998993d1f4bce66a31682b6aa.tar hurrycurry-dc9995e412ac73d998993d1f4bce66a31682b6aa.tar.bz2 hurrycurry-dc9995e412ac73d998993d1f4bce66a31682b6aa.tar.zst | |
window fullscreeen bug
| -rw-r--r-- | client/global.gd | 3 |
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) |