Skip to content

Commit

Permalink
Fix property name of viewport width/height settings in Multiple resol…
Browse files Browse the repository at this point in the history
…utions (#811)

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
  • Loading branch information
zoeesilcock and Calinou authored Jan 6, 2023
1 parent 1d5184e commit 3b06e40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/multiple_resolutions/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
# (with their rect spread across the whole viewport, and Anchor set to Full Rect).
extends Control

var base_window_size = Vector2(ProjectSettings.get_setting("display/window/size/width"), ProjectSettings.get_setting("display/window/size/height"))
var base_window_size = Vector2(
ProjectSettings.get_setting("display/window/size/viewport_width"),
ProjectSettings.get_setting("display/window/size/viewport_height")
)

# These defaults match this demo's project settings. Adjust as needed if adapting this
# in your own project.
Expand Down

0 comments on commit 3b06e40

Please sign in to comment.