mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 02:46:49 +00:00
XEEN: Further work on sprite scaling
This commit is contained in:
parent
a1fb631fe3
commit
8cd2e5ad92
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user