From 186ff9cbce3bb9ffa5dcf7dbee1f30e4437e1080 Mon Sep 17 00:00:00 2001 From: Scott Percival Date: Sun, 18 Aug 2019 21:37:53 +0800 Subject: DIRECTOR: treat drawRect bounding box params as signed --- engines/director/frame.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines') 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); -- cgit v1.2.3