From 2f76257da47b8e529d071bd029ad3caebc6ed9be Mon Sep 17 00:00:00 2001 From: Shockblast Date: Sun, 16 Apr 2017 18:02:22 -0300 Subject: [GD 3.0] Fix stretch mode 2d... again Objects on the screen were not displayed when the project was played, because it looked for the values of width and height of menus with old names (godot 2.1?) For that reason delivered value (0, 0). --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 0fa795b214..f2b8804778 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1235,7 +1235,7 @@ bool Main::start() { String stretch_mode = GLOBAL_DEF("display/stretch/mode", "disabled"); String stretch_aspect = GLOBAL_DEF("display/stretch/aspect", "ignore"); - Size2i stretch_size = Size2(GLOBAL_DEF("display/screen/width", 0), GLOBAL_DEF("display/screen/height", 0)); + Size2i stretch_size = Size2(GLOBAL_DEF("display/window/width", 0), GLOBAL_DEF("display/window/height", 0)); SceneTree::StretchMode sml_sm = SceneTree::STRETCH_MODE_DISABLED; if (stretch_mode == "2d") -- cgit v1.2.3