Skip to content

Commit

Permalink
XEEN: Further work on sprite scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jan 20, 2015
1 parent a1fb631 commit 8cd2e5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engines/xeen/sprites.cpp
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions engines/xeen/xsurface.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 8cd2e5a

Please sign in to comment.