Skip to content

Commit

Permalink
MADS: Fix drawing of background objects
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jun 4, 2014
1 parent 5ad589d commit f086b64
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions engines/mads/sprites.cpp
Expand Up @@ -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");
}
Expand Down

0 comments on commit f086b64

Please sign in to comment.