aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/gui.cpp
diff options
context:
space:
mode:
authorBorja Lorente2016-07-13 19:22:11 +0200
committerBorja Lorente2016-08-14 18:54:52 +0200
commitdad1edcef0e5b95b0d4b09e97c2045a3b5ba61f3 (patch)
tree09402d1b9c361e92646b74188ea699696e30be36 /engines/macventure/gui.cpp
parente32c126348df69d8ec15ef3b67d6250935325860 (diff)
downloadscummvm-rg350-dad1edcef0e5b95b0d4b09e97c2045a3b5ba61f3.tar.gz
scummvm-rg350-dad1edcef0e5b95b0d4b09e97c2045a3b5ba61f3.tar.bz2
scummvm-rg350-dad1edcef0e5b95b0d4b09e97c2045a3b5ba61f3.zip
MACVENTURE: Remove unnecesary window code
Diffstat (limited to 'engines/macventure/gui.cpp')
-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) {