Skip to content

Commit a2f4528

Browse files
committed
add window dimensions to config.toml to make it easy to choose default window size at launch
1 parent b01f6cd commit a2f4528

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, 1080, "Window height", "General");
33+
DEFINE_int32(window_width, 1920, "Window width", "General");
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)