mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
fix wrong window size
This commit is contained in:
parent
ba96896507
commit
c545b69a0d
2 changed files with 6 additions and 2 deletions
|
@ -8,8 +8,8 @@ class_name RenderResult
|
|||
var ext_texure: ExternalTexture
|
||||
var texture_rid: RID
|
||||
|
||||
@onready var width: int = int(ui_events.current_ui_size.x)
|
||||
@onready var height: int = int(ui_events.current_ui_size.y)
|
||||
@onready var width: int = get_viewport().size.x / (2 if Platform.is_macos() else 1)
|
||||
@onready var height: int = get_viewport().size.y / (2 if Platform.is_macos() else 1)
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue