Merge pull request #15175 from Hinsbart/windowed_editor

Editor: Respect -w command line flag.
This commit is contained in:
Gilles Roudiere 2017-12-30 22:18:23 +09:00 committed by GitHub
commit 0294887a0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -755,8 +755,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
if (editor) {
Engine::get_singleton()->set_editor_hint(true);
main_args.push_back("--editor");
init_maximized = true;
video_mode.maximized = true;
if (!init_windowed) {
init_maximized = true;
video_mode.maximized = true;
}
use_custom_res = false;
}