aboutsummaryrefslogtreecommitdiffstats
path: root/src/titlescreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/titlescreen.cpp')
-rw-r--r--src/titlescreen.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/titlescreen.cpp b/src/titlescreen.cpp
index b2f6c02..14c97e5 100644
--- a/src/titlescreen.cpp
+++ b/src/titlescreen.cpp
@@ -79,11 +79,8 @@ TitleScreen::TitleScreen() :
int graphicHeight = (sh / 4) * 3;
int selectionHeight = (sh / 4);
- m_graphicWindow = std::make_shared<Boxii::Window>(0, 0, sw, graphicHeight + 1, false);
- m_selectionWindow = std::make_shared<Boxii::TextWindow>(0, graphicHeight + 1, sw, selectionHeight + 1, false);
-
- addWindow("graphic", m_graphicWindow);
- addWindow("selection", m_selectionWindow);
+ m_graphicWindow = Boxii::makeWindow<Boxii::Window>(0, 0, sw, graphicHeight + 1);
+ m_selectionWindow = Boxii::makeWindow<Boxii::TextWindow>(0, graphicHeight + 1, sw, selectionHeight + 1);
printTitle(m_graphicWindow);
printSelections(m_selectionWindow, m_selection);
@@ -103,7 +100,7 @@ TitleScreen::parseSelection()
void
TitleScreen::update()
{
- int c = Boxii::Input::getch(false);
+ int c = Boxii::Input::getch(true);
if(c == Boxii::KEY_ESCAPE) {
Game::pushScreen("pause");
}