aboutsummaryrefslogtreecommitdiff
path: root/engines/composer/scripting.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2011-07-19 16:12:18 +0200
committerAlyssa Milburn2011-07-19 16:12:18 +0200
commit6646be1da11e417e17e2f530a96399392916498f (patch)
treed0c5df0bfc8524ad96c93f19a13f71baeb5c92dd /engines/composer/scripting.cpp
parent6dfbf74a745246c3dd5503c7999b51d076cd574c (diff)
downloadscummvm-rg350-6646be1da11e417e17e2f530a96399392916498f.tar.gz
scummvm-rg350-6646be1da11e417e17e2f530a96399392916498f.tar.bz2
scummvm-rg350-6646be1da11e417e17e2f530a96399392916498f.zip
COMPOSER: Implement kFuncChangeBackground.
Diffstat (limited to 'engines/composer/scripting.cpp')
-rw-r--r--engines/composer/scripting.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/composer/scripting.cpp b/engines/composer/scripting.cpp
index ba1cdd7c74..f52ed3ea43 100644
--- a/engines/composer/scripting.cpp
+++ b/engines/composer/scripting.cpp
@@ -652,10 +652,10 @@ int16 ComposerEngine::scriptFuncCall(uint16 id, int16 param1, int16 param2, int1
_vars[param2] = _lastMousePos.y;
return 0;
case kFuncChangeBackground:
- // TODO
- warning("ignoring kFuncChangeBackground(%d)", param1);
+ debug(3, "kFuncChangeBackground(%d)", param1);
// TODO: return 1 if background existed, else 0
- return 0;
+ setBackground(param1);
+ return 1;
case kFuncSetBackgroundColor:
// TODO
warning("ignoring kFuncSetBackgroundColor(%d)", param1);