From 1c480698ce0e881cbd28f1f0ddba95cee74ca834 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 9 Apr 2017 20:40:48 -0300 Subject: -Fixed crash with splash screen on windows -properly show editor without having to resize window on windows --- scene/main/scene_main_loop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/main') diff --git a/scene/main/scene_main_loop.cpp b/scene/main/scene_main_loop.cpp index 83f60bb9e9..be28479f39 100644 --- a/scene/main/scene_main_loop.cpp +++ b/scene/main/scene_main_loop.cpp @@ -2317,7 +2317,7 @@ SceneTree::SceneTree() { stretch_aspect = STRETCH_ASPECT_IGNORE; last_screen_size = Size2(OS::get_singleton()->get_video_mode().width, OS::get_singleton()->get_video_mode().height); - root->set_size(last_screen_size); + _update_root_rect(); if (ScriptDebugger::get_singleton()) { ScriptDebugger::get_singleton()->set_request_scene_tree_message_func(_debugger_request_tree, this); -- cgit v1.2.3