diff options
author | Adrian Frühwirth | 2018-01-19 21:21:19 +0100 |
---|---|---|
committer | Adrian Frühwirth | 2018-02-07 20:50:15 +0100 |
commit | 8424b0a3014ef2e3c6f36f02259dfb15db99d8b9 (patch) | |
tree | 4db07446488c1889e4e9fe06f25993e6b560e0c6 /engines/tucker/tucker.cpp | |
parent | 47eda4bcf76252b2c9be2427c897884449073394 (diff) | |
download | scummvm-rg350-8424b0a3014ef2e3c6f36f02259dfb15db99d8b9.tar.gz scummvm-rg350-8424b0a3014ef2e3c6f36f02259dfb15db99d8b9.tar.bz2 scummvm-rg350-8424b0a3014ef2e3c6f36f02259dfb15db99d8b9.zip |
TUCKER: Fix offset drawing bug in drawSprite()
Fixes Trac#6639.
Diffstat (limited to 'engines/tucker/tucker.cpp')
-rw-r--r-- | engines/tucker/tucker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp index d233826901..18752a00e9 100644 --- a/engines/tucker/tucker.cpp +++ b/engines/tucker/tucker.cpp @@ -1989,8 +1989,8 @@ void TuckerEngine::drawSprite(int num) { Graphics::decodeRLE_248(dstPtr, srcPtr, srcW, srcH, 0, s->_yMaxBackground, s->_flipX); break; } - const int xR = srcX + (s->_gfxBackgroundOffset % 640); - const int yR = srcY + (s->_gfxBackgroundOffset / 640); + const int xR = (srcX + s->_gfxBackgroundOffset) % 640; + const int yR = srcY + (s->_gfxBackgroundOffset / 640); addDirtyRect(xR, yR, srcW, srcH); } } |