fullscreen on mac

This commit is contained in:
Nordup 2024-10-25 07:30:54 +04:00
parent 90ac30dd89
commit 74e165b174
2 changed files with 5 additions and 0 deletions

View file

@ -20,6 +20,10 @@ func set_initial_screen() -> void:
DisplayServer.window_set_current_screen(last_screen)
Debug.logclr("Initial screen: %d" % [last_screen], Debug.SILENT_CLR)
if Platform.is_macos():
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
Debug.logclr("Setting fullscreen mode", Debug.SILENT_CLR)
func _exit_tree() -> void: