aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core/background.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/core/background.cpp')
-rw-r--r--engines/titanic/core/background.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/engines/titanic/core/background.cpp b/engines/titanic/core/background.cpp
index ea3bdb01a8..cb8e26450f 100644
--- a/engines/titanic/core/background.cpp
+++ b/engines/titanic/core/background.cpp
@@ -50,15 +50,23 @@ void CBackground::load(SimpleFile *file) {
}
bool CBackground::handleMessage(CStatusChangeMsg &msg) {
- error("TODO: CBackground::handleMessage");
+ setVisible(true);
+ if (_fieldDC) {
+ fn1(_fieldBC, _fieldC0, 16);
+ } else {
+ fn1(_fieldBC, _fieldC0, 0);
+ }
+ return true;
}
bool CBackground::handleMessage(CSetFrameMsg &msg) {
- error("TODO: CBackground::handleMessage");
+ loadFrame(msg._frameNumber);
+ return true;
}
bool CBackground::handleMessage(CVisibleMsg &msg) {
- error("TODO: CBackground::handleMessage");
+ setVisible(msg._visible);
+ return true;
}
} // End of namespace Titanic