[UI] Add window dimension cvars
This commit is contained in:
parent
28ea438dce
commit
acc1930a01
|
@ -29,6 +29,9 @@
|
||||||
|
|
||||||
DECLARE_bool(debug);
|
DECLARE_bool(debug);
|
||||||
|
|
||||||
|
DEFINE_int32(window_height, 720, "Window height", "UI");
|
||||||
|
DEFINE_int32(window_width, 1280, "Window width", "UI");
|
||||||
|
|
||||||
namespace xe {
|
namespace xe {
|
||||||
namespace app {
|
namespace app {
|
||||||
|
|
||||||
|
@ -291,7 +294,7 @@ bool EmulatorWindow::Initialize() {
|
||||||
|
|
||||||
window_->set_main_menu(std::move(main_menu));
|
window_->set_main_menu(std::move(main_menu));
|
||||||
|
|
||||||
window_->Resize(1280, 720);
|
window_->Resize(cvars::window_width, cvars::window_height);
|
||||||
|
|
||||||
window_->DisableMainMenu();
|
window_->DisableMainMenu();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue