diff options
author | Paul Gilbert | 2017-02-21 20:41:35 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-02-21 20:41:35 -0500 |
commit | 1a25abbd739bdeaa04d562d35c0e3d9336a317ed (patch) | |
tree | a42baadb0e13b1610b4743363dade892867d2b3f | |
parent | 085332a3dc8b006144f46b47b77d888d5ba9e467 (diff) | |
download | scummvm-rg350-1a25abbd739bdeaa04d562d35c0e3d9336a317ed.tar.gz scummvm-rg350-1a25abbd739bdeaa04d562d35c0e3d9336a317ed.tar.bz2 scummvm-rg350-1a25abbd739bdeaa04d562d35c0e3d9336a317ed.zip |
GRAPHICS: Apply eriktorbjorn's fix for non-origin transBlitFrom calls
-rw-r--r-- | graphics/managed_surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp index fe524724cd..60b2941efa 100644 --- a/graphics/managed_surface.cpp +++ b/graphics/managed_surface.cpp @@ -256,7 +256,7 @@ void transBlit(const Surface &src, const Common::Rect &srcRect, Surface &dest, c for (int destY = destRect.top, scaleYCtr = 0; destY < destRect.bottom; ++destY, scaleYCtr += scaleY) { if (destY < 0 || destY >= dest.h) continue; - const TSRC *srcLine = (const TSRC *)src.getBasePtr(0, scaleYCtr / SCALE_THRESHOLD); + const TSRC *srcLine = (const TSRC *)src.getBasePtr(srcRect.left, scaleYCtr / SCALE_THRESHOLD + srcRect.top); TDEST *destLine = (TDEST *)dest.getBasePtr(destRect.left, destY); // Loop through drawing the pixels of the row |