Ticket #9709: managed-surface.diff

File managed-surface.diff, 755 bytes (added by eriktorbjorn, 3 years ago)
  • graphics/managed_surface.cpp

    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  
    256256        for (int destY = destRect.top, scaleYCtr = 0; destY < destRect.bottom; ++destY, scaleYCtr += scaleY) {
    257257                if (destY < 0 || destY >= dest.h)
    258258                        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);
    260260                TDEST *destLine = (TDEST *)dest.getBasePtr(destRect.left, destY);
    261261
    262262                // Loop through drawing the pixels of the row