aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-06-11 17:06:46 -0400
committerPaul Gilbert2017-06-11 17:06:46 -0400
commit6930f2b648849ad2e00d25f1397cc9c3bba34045 (patch)
tree9d6942ec87f64effacbe5df85923e797f3c5f6fa /engines
parent3be659b5c1de5273857a19e65d27d89b81ff8601 (diff)
downloadscummvm-rg350-6930f2b648849ad2e00d25f1397cc9c3bba34045.tar.gz
scummvm-rg350-6930f2b648849ad2e00d25f1397cc9c3bba34045.tar.bz2
scummvm-rg350-6930f2b648849ad2e00d25f1397cc9c3bba34045.zip
TITANIC: Rename viewChange to freeSurface
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/core/game_object.cpp2
-rw-r--r--engines/titanic/core/game_object.h4
-rw-r--r--engines/titanic/core/tree_item.h4
-rw-r--r--engines/titanic/game_manager.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp
index f99e2cc255..b4079f1c19 100644
--- a/engines/titanic/core/game_object.cpp
+++ b/engines/titanic/core/game_object.cpp
@@ -248,7 +248,7 @@ Rect CGameObject::getBounds() const {
return (_surface && _surface->hasFrame()) ? _bounds : Rect();
}
-void CGameObject::viewChange() {
+void CGameObject::freeSurface() {
// Handle freeing the surfaces of objects when their view is left
if (_surface) {
_resource = _surface->_resourceKey.getString();
diff --git a/engines/titanic/core/game_object.h b/engines/titanic/core/game_object.h
index 08f53f3a83..34bdcc7057 100644
--- a/engines/titanic/core/game_object.h
+++ b/engines/titanic/core/game_object.h
@@ -576,9 +576,9 @@ public:
virtual Rect getBounds() const;
/**
- * Called when the view changes
+ * Free up any surface the object used
*/
- virtual void viewChange();
+ virtual void freeSurface();
/**
* Allows the item to draw itself
diff --git a/engines/titanic/core/tree_item.h b/engines/titanic/core/tree_item.h
index 498d2da4f4..8509e7d5fc 100644
--- a/engines/titanic/core/tree_item.h
+++ b/engines/titanic/core/tree_item.h
@@ -155,9 +155,9 @@ public:
virtual Rect getBounds() const { return Rect(); }
/**
- * Called when the view changes
+ * Free up any surface the object used
*/
- virtual void viewChange() {}
+ virtual void freeSurface() {}
/**
* Get the parent for the given item
diff --git a/engines/titanic/game_manager.cpp b/engines/titanic/game_manager.cpp
index 040442a8b0..ed6f56decb 100644
--- a/engines/titanic/game_manager.cpp
+++ b/engines/titanic/game_manager.cpp
@@ -265,7 +265,7 @@ void CGameManager::roomChange() {
_trueTalkManager.clear();
for (CTreeItem *treeItem = _project; treeItem; treeItem = treeItem->scan(_project))
- treeItem->viewChange();
+ treeItem->freeSurface();
markAllDirty();
}