XEEN: Further work on sprite scaling

This commit is contained in:
Paul Gilbert 2015-01-19 22:38:33 -05:00
parent a1fb631fe3
commit 8cd2e5ad92
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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