summaryrefslogtreecommitdiff
path: root/ui/gameMainSelector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gameMainSelector.cpp')
-rw-r--r--ui/gameMainSelector.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/gameMainSelector.cpp b/ui/gameMainSelector.cpp
index 55d0ae0..0c40abc 100644
--- a/ui/gameMainSelector.cpp
+++ b/ui/gameMainSelector.cpp
@@ -13,10 +13,14 @@ GameMainSelector::GameMainSelector(const Camera * c) : camera {c} { }
constexpr ScreenAbsCoord TargetPos {5, 45};
void
-GameMainSelector::render() const
+GameMainSelector::render()
{
if (target) {
- target->render();
+ bool open = true;
+ target->render(open);
+ if (!open) {
+ target.reset();
+ }
}
}
@@ -86,7 +90,7 @@ GameMainSelector::Component::handleInput(const SDL_Event &)
}
void
-GameMainSelector::Component::render()
+GameMainSelector::Component::render(bool &)
{
}