[Scummvm-git-logs] scummvm master -> 8424b0a3014ef2e3c6f36f02259dfb15db99d8b9
bonki
bonki at users.noreply.github.com
Wed Feb 7 20:51:27 CET 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8424b0a301 TUCKER: Fix offset drawing bug in drawSprite()
Commit: 8424b0a3014ef2e3c6f36f02259dfb15db99d8b9
https://github.com/scummvm/scummvm/commit/8424b0a3014ef2e3c6f36f02259dfb15db99d8b9
Author: Adrian Frühwirth (bonki at users.noreply.github.com)
Date: 2018-02-07T20:50:15+01:00
Commit Message:
TUCKER: Fix offset drawing bug in drawSprite()
Fixes Trac#6639.
Changed paths:
engines/tucker/tucker.cpp
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp
index d233826..18752a0 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);
}
}
More information about the Scummvm-git-logs
mailing list