mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 02:17:27 -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/mode=2
|
||||||
window/size/borderless=true
|
window/size/borderless=true
|
||||||
window/size/transparent=true
|
window/size/transparent=true
|
||||||
|
window/energy_saving/keep_screen_on=false
|
||||||
window/stretch/mode="canvas_items"
|
window/stretch/mode="canvas_items"
|
||||||
window/stretch/aspect="expand"
|
window/stretch/aspect="expand"
|
||||||
window/per_pixel_transparency/allowed=true
|
window/per_pixel_transparency/allowed=true
|
||||||
|
|
|
@ -21,6 +21,10 @@ func set_initial_screen() -> void:
|
||||||
DisplayServer.window_set_current_screen(last_screen)
|
DisplayServer.window_set_current_screen(last_screen)
|
||||||
Debug.logclr("Initial screen: %d" % [last_screen], Debug.SILENT_CLR)
|
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:
|
func _exit_tree() -> void:
|
||||||
var last_screen = DisplayServer.window_get_current_screen()
|
var last_screen = DisplayServer.window_get_current_screen()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue