[Scummvm-cvs-logs] scummvm master -> f086b64b7204203380cb7c006b5f9764949eeebd
dreammaster
dreammaster at scummvm.org
Wed Jun 4 02:56:40 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f086b64b72 MADS: Fix drawing of background objects
Commit: f086b64b7204203380cb7c006b5f9764949eeebd
https://github.com/scummvm/scummvm/commit/f086b64b7204203380cb7c006b5f9764949eeebd
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-06-03T20:56:03-04:00
Commit Message:
MADS: Fix drawing of background objects
Changed paths:
engines/mads/sprites.cpp
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp
index c67c905..f5c2792 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");
}
More information about the Scummvm-git-logs
mailing list