mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 08:53:51 +00:00
PEGASUS: Fix sprites being drawn incorrectly
This commit is contained in:
parent
bbacb4e5c7
commit
b54a6275cf
@ -430,7 +430,7 @@ void Sprite::draw(const Common::Rect &r) {
|
||||
Common::Rect r1 = frameBounds.findIntersectingRect(r);
|
||||
|
||||
Common::Rect r2 = frameBounds;
|
||||
r2.translate(frameBounds.left - _bounds.left - _currentFrame->frameLeft, frameBounds.top - _bounds.top - _currentFrame->frameTop);
|
||||
r2.translate(-_bounds.left - _currentFrame->frameLeft, -_bounds.top - _currentFrame->frameTop);
|
||||
|
||||
_currentFrame->frame->drawImage(r2, r1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user