mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
Fix scaling not working after resizing the window (#699)
This commit is contained in:
@@ -16,7 +16,7 @@ func _ready():
|
||||
|
||||
# Required to change the 3D viewport's size when the window is resized.
|
||||
# warning-ignore:return_value_discarded
|
||||
get_viewport().connect(&"size_changed", self._root_viewport_size_changed)
|
||||
viewport.connect(&"size_changed", self._root_viewport_size_changed)
|
||||
|
||||
|
||||
func _unhandled_input(event):
|
||||
|
||||
@@ -22,7 +22,7 @@ config/features=PackedStringArray("4.0")
|
||||
|
||||
[display]
|
||||
|
||||
window/stretch/mode="2d"
|
||||
window/stretch/mode="canvas_items"
|
||||
window/stretch/aspect="expand"
|
||||
|
||||
[input]
|
||||
|
||||
Reference in New Issue
Block a user