浏览代码

Merge pull request #9050 from vnen/fix-run-window-size

Update window size property names for editor run
Rémi Verschelde 8 年之前
父节点
当前提交
f09f1456b3
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      editor/editor_run.cpp

+ 4 - 4
editor/editor_run.cpp

@@ -78,12 +78,12 @@ Error EditorRun::run(const String &p_scene, const String p_custom_args, const Li
 
 	Size2 desired_size;
 
-	desired_size.x = GlobalConfig::get_singleton()->get("display/width");
-	desired_size.y = GlobalConfig::get_singleton()->get("display/height");
+	desired_size.x = GlobalConfig::get_singleton()->get("display/window/width");
+	desired_size.y = GlobalConfig::get_singleton()->get("display/window/height");
 
 	Size2 test_size;
-	test_size.x = GlobalConfig::get_singleton()->get("display/test_width");
-	test_size.y = GlobalConfig::get_singleton()->get("display/test_height");
+	test_size.x = GlobalConfig::get_singleton()->get("display/window/test_width");
+	test_size.y = GlobalConfig::get_singleton()->get("display/window/test_height");
 	if (test_size.x > 0 && test_size.y > 0) {
 
 		desired_size = test_size;