From 94a075d581c5200c7ca11e06dc24f49a857a4fa0 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Wed, 3 Jun 2015 12:59:36 -0500 Subject: [PATCH] Resize main window after attaching the menu --- src/xenia/ui/main_window.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/xenia/ui/main_window.cc b/src/xenia/ui/main_window.cc index 835e3637c..1ddbc26f8 100644 --- a/src/xenia/ui/main_window.cc +++ b/src/xenia/ui/main_window.cc @@ -50,7 +50,7 @@ bool MainWindow::Initialize() { if (!PlatformWindow::Initialize()) { return false; } - Resize(1280, 720); + UpdateTitle(); on_key_down.AddListener([this](KeyEvent& e) { bool handled = true; @@ -94,11 +94,10 @@ bool MainWindow::Initialize() { main_menu_.AddChild(std::move(file)); - auto debug = - std::make_unique(MenuItem::Type::kPopup, L"&Debug"); - SetMenu(&main_menu_); + Resize(1280, 720); + return true; }