diff options
author | Scott Percival | 2019-08-18 21:37:53 +0800 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-17 22:31:54 +0100 |
commit | 186ff9cbce3bb9ffa5dcf7dbee1f30e4437e1080 (patch) | |
tree | 5db05e085489f73960667eee96efedd479b3e6fa /engines | |
parent | ffde055357416ee9d7704dbe22004a54090fe1fb (diff) | |
download | scummvm-rg350-186ff9cbce3bb9ffa5dcf7dbee1f30e4437e1080.tar.gz scummvm-rg350-186ff9cbce3bb9ffa5dcf7dbee1f30e4437e1080.tar.bz2 scummvm-rg350-186ff9cbce3bb9ffa5dcf7dbee1f30e4437e1080.zip |
DIRECTOR: treat drawRect bounding box params as signed
Diffstat (limited to 'engines')
-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); |