PEGASUS: Fix sprites being drawn incorrectly

This commit is contained in:
Matthew Hoops 2011-09-29 16:40:11 -04:00
parent bbacb4e5c7
commit b54a6275cf

View File

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