aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/mads_views.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2010-06-15 11:19:32 +0000
committerPaul Gilbert2010-06-15 11:19:32 +0000
commitdeb907de637b963af91aa530251fad5ad6b45025 (patch)
treeb3d8d7e8fdfc8aabf4fc89d089f763e96bca07e7 /engines/m4/mads_views.cpp
parentab901bccd06ea88fdd7c16f77e8f7e437092e9eb (diff)
downloadscummvm-rg350-deb907de637b963af91aa530251fad5ad6b45025.tar.gz
scummvm-rg350-deb907de637b963af91aa530251fad5ad6b45025.tar.bz2
scummvm-rg350-deb907de637b963af91aa530251fad5ad6b45025.zip
Bugfixes to depth processing that was causing the 'Microprose Design Group' message not to appear in the first intro scene
svn-id: r49801
Diffstat (limited to 'engines/m4/mads_views.cpp')
-rw-r--r--engines/m4/mads_views.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/m4/mads_views.cpp b/engines/m4/mads_views.cpp
index af4177e6bb..5a7abcf484 100644
--- a/engines/m4/mads_views.cpp
+++ b/engines/m4/mads_views.cpp
@@ -196,7 +196,7 @@ void MadsSpriteSlots::drawForeground(View *view, int yOffset) {
// Minimalised drawing
assert(slot.spriteListIndex < (int)_sprites.size());
M4Sprite *spr = spriteSet.getFrame((slot.frameNumber & 0x7fff) - 1);
- spr->copyTo(view, slot.xp, slot.yp + yOffset, slot.depth, _owner._depthSurface, slot.scale, 0);
+ view->copyFrom(spr, slot.xp, slot.yp, Common::Point(0, yOffset), slot.depth, _owner._depthSurface, slot.scale, 0);
} else {
int xp, yp;
M4Sprite *spr = spriteSet.getFrame(slot.frameNumber - 1);
@@ -211,7 +211,7 @@ void MadsSpriteSlots::drawForeground(View *view, int yOffset) {
if (slot.depth > 1) {
// Draw the frame with depth processing
- spr->copyTo(view, xp, yp + yOffset, slot.depth, _owner._depthSurface, 100, 0);
+ view->copyFrom(spr, xp, yp, Common::Point(0, yOffset), slot.depth, _owner._depthSurface, 100, 0);
} else {
// No depth, so simply draw the image
spr->copyTo(view, xp, yp + yOffset, 0);