diff options
author | Paul Gilbert | 2015-01-19 22:38:33 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-19 22:38:33 -0500 |
commit | 8cd2e5ad9234b148ad5a960d44422ae982e9091f (patch) | |
tree | 949d2665739096908a9c63c43a9d40187eb5803f /engines/xeen | |
parent | a1fb631fe3fc16b534dab2e9074bf8a56d16bdc3 (diff) | |
download | scummvm-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.cpp | 2 | ||||
-rw-r--r-- | engines/xeen/xsurface.cpp | 4 |
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 |