aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game_manager.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-21 20:53:49 -0400
committerPaul Gilbert2016-03-21 20:53:49 -0400
commit217360d0c5a0b8289c16b22fc46782c475fcc9f5 (patch)
tree5fef119ff142d15d2bd91e99dfc9700f86ac38ed /engines/titanic/game_manager.cpp
parent9a66bc2e9e3638af940053ac58df36b489b3e345 (diff)
downloadscummvm-rg350-217360d0c5a0b8289c16b22fc46782c475fcc9f5.tar.gz
scummvm-rg350-217360d0c5a0b8289c16b22fc46782c475fcc9f5.tar.bz2
scummvm-rg350-217360d0c5a0b8289c16b22fc46782c475fcc9f5.zip
TITANIC: Add new derived Rect and Point classes
Diffstat (limited to 'engines/titanic/game_manager.cpp')
-rw-r--r--engines/titanic/game_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/titanic/game_manager.cpp b/engines/titanic/game_manager.cpp
index 49a881d8e2..a80e871e49 100644
--- a/engines/titanic/game_manager.cpp
+++ b/engines/titanic/game_manager.cpp
@@ -137,7 +137,7 @@ void CGameManager::postSave() {
}
void CGameManager::initBounds() {
- _bounds = Common::Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
+ _bounds = Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
}
void CGameManager::fn2() {
@@ -160,7 +160,7 @@ void CGameManager::update() {
if (view) {
// Expand the game manager's bounds to encompass all the view's items
for (CTreeItem *item = view; item; item = item->scan(view)) {
- Common::Rect r = item->getBounds();
+ Rect r = item->getBounds();
if (!r.isEmpty())
_bounds.extend(r);
}
@@ -184,7 +184,7 @@ void CGameManager::update() {
// Handle redrawing the view
if (!_bounds.isEmpty()) {
_gameView->draw(_bounds);
- _bounds = Common::Rect();
+ _bounds = Rect();
}
_gameState.checkForViewChange();