mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-13 09:48:11 -04:00
apply content scale factor on macos
This commit is contained in:
parent
ec97bd1ea6
commit
5fe170dfc6
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ func set_initial_screen() -> void:
|
|||
if Platform.is_macos():
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
|
||||
Debug.logclr("Setting fullscreen mode", Debug.SILENT_CLR)
|
||||
|
||||
var screen_scale = DisplayServer.screen_get_scale()
|
||||
get_window().content_scale_factor = screen_scale
|
||||
Debug.logclr("Content scale factor: %.2f" % [screen_scale], Debug.SILENT_CLR)
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue