aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/disk_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2009-01-07 07:35:11 +0000
committerNicola Mettifogo2009-01-07 07:35:11 +0000
commit21fae9d029e1c902c47f59143c1a8f938c694318 (patch)
tree66cd7707f39f40b0a1bb1d5931a9aa33182a3655 /engines/parallaction/disk_br.cpp
parentef05ed7a985062edf978472b76b97ead0946b92b (diff)
downloadscummvm-rg350-21fae9d029e1c902c47f59143c1a8f938c694318.tar.gz
scummvm-rg350-21fae9d029e1c902c47f59143c1a8f938c694318.tar.bz2
scummvm-rg350-21fae9d029e1c902c47f59143c1a8f938c694318.zip
* moved more mask management to BackgroundInfo
* simplified mask management for client code * reduced the clutter into graphics.h by moving the implementations of BackgroundInfo, MaskBuffer and PathBuffer to graphics.cpp * preparation for the full implementation of BRA's PathBuffer svn-id: r35765
Diffstat (limited to 'engines/parallaction/disk_br.cpp')
-rw-r--r--engines/parallaction/disk_br.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp
index 45ef34e046..5f2ddcd1b7 100644
--- a/engines/parallaction/disk_br.cpp
+++ b/engines/parallaction/disk_br.cpp
@@ -339,8 +339,9 @@ void DosDisk_br::loadScenery(BackgroundInfo& info, const char *name, const char
}
if (mask) {
- info.mask.create(info.width, info.height);
- loadMask(mask, info.mask);
+ info._mask = new MaskBuffer;
+ info._mask->create(info.width, info.height);
+ loadMask(mask, *info._mask);
}
if (path) {