From acc1930a014a3ebe86c4752e1cd96c4174ba8427 Mon Sep 17 00:00:00 2001 From: Cancerous Date: Tue, 27 Aug 2019 15:53:49 -0400 Subject: [PATCH] [UI] Add window dimension cvars --- src/xenia/app/emulator_window.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xenia/app/emulator_window.cc b/src/xenia/app/emulator_window.cc index 2f469d0d9..642fa65dd 100644 --- a/src/xenia/app/emulator_window.cc +++ b/src/xenia/app/emulator_window.cc @@ -29,6 +29,9 @@ DECLARE_bool(debug); +DEFINE_int32(window_height, 720, "Window height", "UI"); +DEFINE_int32(window_width, 1280, "Window width", "UI"); + namespace xe { namespace app { @@ -291,7 +294,7 @@ bool EmulatorWindow::Initialize() { window_->set_main_menu(std::move(main_menu)); - window_->Resize(1280, 720); + window_->Resize(cvars::window_width, cvars::window_height); window_->DisableMainMenu();