aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure
diff options
context:
space:
mode:
Diffstat (limited to 'engines/macventure')
-rw-r--r--engines/macventure/gui.cpp24
1 files changed, 1 insertions, 23 deletions
diff --git a/engines/macventure/gui.cpp b/engines/macventure/gui.cpp
index a313e3e94d..91df455318 100644
--- a/engines/macventure/gui.cpp
+++ b/engines/macventure/gui.cpp
@@ -254,29 +254,7 @@ const Graphics::Font& Gui::getCurrentFont() {
}
void Gui::bringToFront(WindowReference winID) {
- // FIXME: There has to be a better way to do this, maybe with the _wm
- switch (winID) {
- case MacVenture::kCommandsWindow:
- _controlsWindow->setActive(true);
- break;
- case MacVenture::kMainGameWindow:
- _mainGameWindow->setActive(true);
- break;
- case MacVenture::kOutConsoleWindow:
- _outConsoleWindow->setActive(true);
- break;
- case MacVenture::kSelfWindow:
- _selfWindow->setActive(true);
- break;
- case MacVenture::kExitsWindow:
- _exitsWindow->setActive(true);
- break;
- case MacVenture::kDiplomaWindow:
- _diplomaWindow->setActive(true);
- break;
- default:
- break;
- }
+ findWindow(winID)->setActive(true);
}
void Gui::setWindowTitle(WindowReference winID, Common::String string) {