aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2015-01-19 22:38:33 -0500
committerPaul Gilbert2015-01-19 22:38:33 -0500
commit8cd2e5ad9234b148ad5a960d44422ae982e9091f (patch)
tree949d2665739096908a9c63c43a9d40187eb5803f /engines/xeen
parenta1fb631fe3fc16b534dab2e9074bf8a56d16bdc3 (diff)
downloadscummvm-rg350-8cd2e5ad9234b148ad5a960d44422ae982e9091f.tar.gz
scummvm-rg350-8cd2e5ad9234b148ad5a960d44422ae982e9091f.tar.bz2
scummvm-rg350-8cd2e5ad9234b148ad5a960d44422ae982e9091f.zip
XEEN: Further work on sprite scaling
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/sprites.cpp2
-rw-r--r--engines/xeen/xsurface.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp
index 1d9a5c8abf..62074ed565 100644
--- a/engines/xeen/sprites.cpp
+++ b/engines/xeen/sprites.cpp
@@ -230,7 +230,7 @@ void SpriteResource::drawOffset(XSurface &dest, uint16 offset, const Common::Poi
void SpriteResource::draw(XSurface &dest, int frame, const Common::Point &destPos,
int flags, int scale) const {
- scale = 0; // ***DEBUG***
+
if (scale == 0) {
drawOffset(dest, _index[frame]._offset1, destPos, flags);
if (_index[frame]._offset2)
diff --git a/engines/xeen/xsurface.cpp b/engines/xeen/xsurface.cpp
index b01ade17df..7060a6326a 100644
--- a/engines/xeen/xsurface.cpp
+++ b/engines/xeen/xsurface.cpp
@@ -112,8 +112,8 @@ void XSurface::transBlitTo(XSurface &dest, const Common::Point &destPos,
}
} while (++distIndex < highestDim);
- destX -= distXCount / 2;
- destY -= distYCount - 1;
+ destX += (this->w - distXCount) / 2;
+ destY += (this->h - distYCount) / 2;
}
// Start of draw logic for scaled sprites