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

@ -44,6 +44,7 @@ window/size/viewport_height=1080
window/size/mode=2
window/size/borderless=true
window/size/transparent=true
window/energy_saving/keep_screen_on=false
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
window/per_pixel_transparency/allowed=true

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: