MADS: Fix drawing of background objects
This commit is contained in:
parent
5ad589da06
commit
f086b64b72
1 changed files with 2 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue