mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-22 23:17:26 -04:00
fullscreen on mac
This commit is contained in:
parent
90ac30dd89
commit
74e165b174
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue