From 1a25abbd739bdeaa04d562d35c0e3d9336a317ed Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 21 Feb 2017 20:41:35 -0500 Subject: GRAPHICS: Apply eriktorbjorn's fix for non-origin transBlitFrom calls --- graphics/managed_surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/managed_surface.cpp') 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 -- cgit v1.2.3