aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parallaction.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2008-07-31 12:50:43 +0000
committerNicola Mettifogo2008-07-31 12:50:43 +0000
commit6ed4beb1bfc1ffe7a2ca9f99dbd63eaf9c245bea (patch)
tree3950297e2117050ba53575ed417d6a0b7cec4569 /engines/parallaction/parallaction.cpp
parent591973c827c60648b6d94e2bca44fd1df49ed2f5 (diff)
downloadscummvm-rg350-6ed4beb1bfc1ffe7a2ca9f99dbd63eaf9c245bea.tar.gz
scummvm-rg350-6ed4beb1bfc1ffe7a2ca9f99dbd63eaf9c245bea.tar.bz2
scummvm-rg350-6ed4beb1bfc1ffe7a2ca9f99dbd63eaf9c245bea.zip
Made changing of background more flexible, in that the engine can now configure its BackgroundInfo before passing it to Gfx.
svn-id: r33469
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r--engines/parallaction/parallaction.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp
index e13d2f9aa4..e4a5f55894 100644
--- a/engines/parallaction/parallaction.cpp
+++ b/engines/parallaction/parallaction.cpp
@@ -289,7 +289,10 @@ void Parallaction::freeBackground() {
void Parallaction::setBackground(const char* name, const char* mask, const char* path) {
- _gfx->setBackground(kBackgroundLocation, name, mask, path);
+ BackgroundInfo *info = new BackgroundInfo;
+ _disk->loadScenery(*info, name, mask, path);
+
+ _gfx->setBackground(kBackgroundLocation, info);
_pathBuffer = &_gfx->_backgroundInfo->path;
return;