Skip to content

Commit

Permalink
Fix scaling not working after resizing the window (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
voylin authored Mar 30, 2022
1 parent 2ff9d17 commit e6c19ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion viewport/3d_scaling/hud.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion viewport/3d_scaling/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ config/features=PackedStringArray("4.0")

[display]

window/stretch/mode="2d"
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"

[input]
Expand Down

0 comments on commit e6c19ff

Please sign in to comment.