aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/graphics.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-08-06 19:39:00 +0000
committerNicola Mettifogo2007-08-06 19:39:00 +0000
commit14448af3bb57c49a3bfb056c1f368db47161b3ff (patch)
tree986a195a25256a8a3149cccfa7931f3022ba4dc3 /engines/parallaction/graphics.cpp
parent57196e5dd894240320d15a62e02f8af8acfed2d7 (diff)
downloadscummvm-rg350-14448af3bb57c49a3bfb056c1f368db47161b3ff.tar.gz
scummvm-rg350-14448af3bb57c49a3bfb056c1f368db47161b3ff.tar.bz2
scummvm-rg350-14448af3bb57c49a3bfb056c1f368db47161b3ff.zip
Made disk code directly create mask BitBuffer from resources.
svn-id: r28473
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r--engines/parallaction/graphics.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp
index 4c0f7e74e4..0eba2b8db3 100644
--- a/engines/parallaction/graphics.cpp
+++ b/engines/parallaction/graphics.cpp
@@ -757,8 +757,11 @@ void Gfx::setBackground(byte *background) {
copyScreen(kBitBack, kBit2);
}
-void Gfx::setMask(byte *mask) {
- memcpy(_depthMask->data, mask, _vm->_screenMaskSize);
+void Gfx::setMask(BitBuffer *buffer) {
+ if (_depthMask)
+ delete _depthMask;
+
+ _depthMask = buffer;
}
@@ -847,8 +850,7 @@ Gfx::Gfx(Parallaction* vm) :
_buffers[kBit2] = new Graphics::Surface;
_buffers[kBit2]->create(_vm->_screenWidth, _vm->_screenHeight, 1);
- _depthMask = new BitBuffer;
- _depthMask->create(_vm->_screenWidth, _vm->_screenHeight);
+ _depthMask = 0;
setBlackPalette();