Skip to content

Commit c385981

Browse files
committed
[UI] Add window dimension cvars
1 parent b01f6cd commit c385981

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/xenia/app/emulator_window.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929

3030
DECLARE_bool(debug);
3131

32+
DEFINE_int32(window_height, 720, "Window height", "UI");
33+
DEFINE_int32(window_width, 1280, "Window width", "UI");
34+
3235
namespace xe {
3336
namespace app {
3437

@@ -284,7 +287,7 @@ bool EmulatorWindow::Initialize() {
284287

285288
window_->set_main_menu(std::move(main_menu));
286289

287-
window_->Resize(1280, 720);
290+
window_->Resize(cvars::window_width, cvars::window_height);
288291

289292
window_->DisableMainMenu();
290293

0 commit comments

Comments
 (0)