Fix x11 boot logo position in fullscreen and in maximized

This commit is contained in:
santouits 2017-10-24 22:35:28 +03:00
parent 0268a95828
commit 55fae24710
4 changed files with 45 additions and 48 deletions

2
main/main.cpp Normal file → Executable file
View file

@ -395,6 +395,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
} else if (I->get() == "-m" || I->get() == "--maximized") { // force maximized window
init_maximized = true;
video_mode.maximized = true;
} else if (I->get() == "-w" || I->get() == "--windowed") { // force windowed window
init_windowed = true;
@ -716,6 +717,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
Engine::get_singleton()->set_editor_hint(true);
main_args.push_back("--editor");
init_maximized = true;
video_mode.maximized = true;
use_custom_res = false;
}