diff options
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/frame.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index 15463c05c3..dd6f9fc02e 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -618,16 +618,16 @@ void Frame::renderSprites(Graphics::ManagedSurface &surface, bool renderTrail) { continue; } - uint32 regX = _sprites[i]->_bitmapCast->regX; - uint32 regY = _sprites[i]->_bitmapCast->regY; - uint32 rectLeft = _sprites[i]->_bitmapCast->initialRect.left; - uint32 rectTop = _sprites[i]->_bitmapCast->initialRect.top; + int32 regX = _sprites[i]->_bitmapCast->regX; + int32 regY = _sprites[i]->_bitmapCast->regY; + int32 rectLeft = _sprites[i]->_bitmapCast->initialRect.left; + int32 rectTop = _sprites[i]->_bitmapCast->initialRect.top; int x = _sprites[i]->_startPoint.x - regX + rectLeft; int y = _sprites[i]->_startPoint.y - regY + rectTop; int height = _sprites[i]->_height; int width = _vm->getVersion() > 4 ? _sprites[i]->_bitmapCast->initialRect.width() : _sprites[i]->_width; - + warning("drawRect: x=%d, y=%d, w=%d h=%d", x, y, width, height); Common::Rect drawRect(x, y, x + width, y + height); addDrawRect(i, drawRect); inkBasedBlit(surface, *(_sprites[i]->_bitmapCast->surface), i, drawRect); |