diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp
index fe524724cd..60b2941efa 100644
a
|
b
|
void transBlit(const Surface &src, const Common::Rect &srcRect, Surface &dest, c
|
256 | 256 | for (int destY = destRect.top, scaleYCtr = 0; destY < destRect.bottom; ++destY, scaleYCtr += scaleY) { |
257 | 257 | if (destY < 0 || destY >= dest.h) |
258 | 258 | continue; |
259 | | const TSRC *srcLine = (const TSRC *)src.getBasePtr(0, scaleYCtr / SCALE_THRESHOLD); |
| 259 | const TSRC *srcLine = (const TSRC *)src.getBasePtr(srcRect.left, scaleYCtr / SCALE_THRESHOLD + srcRect.top); |
260 | 260 | TDEST *destLine = (TDEST *)dest.getBasePtr(destRect.left, destY); |
261 | 261 | |
262 | 262 | // Loop through drawing the pixels of the row |