diff options
author | Adrian Frühwirth | 2018-01-24 01:06:57 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-01-31 19:20:31 +0100 |
commit | 1133b34954b31e141bc8d920d67e579ceabd1dcb (patch) | |
tree | 608c114591bfab871c53dfa2d38c961b668808cb /engines/tucker/tucker.cpp | |
parent | 89cbf91d636d05420753494c0f8ec0a1318c9d61 (diff) | |
download | scummvm-rg350-1133b34954b31e141bc8d920d67e579ceabd1dcb.tar.gz scummvm-rg350-1133b34954b31e141bc8d920d67e579ceabd1dcb.tar.bz2 scummvm-rg350-1133b34954b31e141bc8d920d67e579ceabd1dcb.zip |
TUCKER: Fix dirty rects drawing bug in drawStringInteger()
Diffstat (limited to 'engines/tucker/tucker.cpp')
-rw-r--r-- | engines/tucker/tucker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp index 7479841981..10da52603f 100644 --- a/engines/tucker/tucker.cpp +++ b/engines/tucker/tucker.cpp @@ -2872,6 +2872,7 @@ void TuckerEngine::updateSprite(int i) { } void TuckerEngine::drawStringInteger(int num, int x, int y, int digits) { + const int xStart = x; char numStr[4]; assert(num < 1000); sprintf(numStr, "%03d", num); @@ -2880,7 +2881,7 @@ void TuckerEngine::drawStringInteger(int num, int x, int y, int digits) { Graphics::drawStringChar(_locationBackgroundGfxBuf, _scrollOffset + x, y, 640, numStr[i], 102, _charsetGfxBuf); x += 8; } - addDirtyRect(_scrollOffset + x, y, Graphics::_charset._charW * 3, Graphics::_charset._charH); + addDirtyRect(_scrollOffset + xStart, y, Graphics::_charset._charW * 3, Graphics::_charset._charH); } void TuckerEngine::drawStringAlt(int x, int y, int color, const uint8 *str, int strLen) { |