diff options
author | Paul Gilbert | 2014-06-03 20:56:03 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-06-03 20:56:03 -0400 |
commit | f086b64b7204203380cb7c006b5f9764949eeebd (patch) | |
tree | 52136ba871ad7cd195984da025183b475c5cf590 /engines/mads | |
parent | 5ad589da061b7d193aaa9a4f7960da9e60aaa7bf (diff) | |
download | scummvm-rg350-f086b64b7204203380cb7c006b5f9764949eeebd.tar.gz scummvm-rg350-f086b64b7204203380cb7c006b5f9764949eeebd.tar.bz2 scummvm-rg350-f086b64b7204203380cb7c006b5f9764949eeebd.zip |
MADS: Fix drawing of background objects
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/sprites.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp index c67c905251..f5c2792a70 100644 --- a/engines/mads/sprites.cpp +++ b/engines/mads/sprites.cpp @@ -253,15 +253,14 @@ void SpriteSlots::drawBackground() { if (spriteSlot._scale != -1) { // Adjust the drawing position pt.x -= frame->w / 2; - pt.y -= frame->h / 2; + pt.y -= frame->h - 1; } - if (spriteSlot._depth <= 1) { frame->copyTo(&scene._backgroundSurface, pt, frame->getTransparencyIndex()); } else if (scene._depthStyle == 0) { scene._backgroundSurface.copyFrom(frame, pt, spriteSlot._depth, &scene._depthSurface, - 100, frame->getTransparencyIndex()); + -1, false, frame->getTransparencyIndex()); } else { error("Unsupported depth style"); } |