Resize main window after attaching the menu

This commit is contained in:
Dr. Chat 2015-06-03 12:59:36 -05:00
parent 954b67df78
commit 94a075d581
1 changed files with 3 additions and 4 deletions

View File

@ -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<PlatformMenu>(MenuItem::Type::kPopup, L"&Debug");
SetMenu(&main_menu_);
Resize(1280, 720);
return true;
}