diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp index dc1b1b1b4f8..1b14bac22d7 100644 --- a/graphics/managed_surface.cpp +++ b/graphics/managed_surface.cpp @@ -246,6 +246,10 @@ void ManagedSurface::blitFrom(const ManagedSurface &src, const Common::Rect &src void ManagedSurface::blitFromInner(const Surface &src, const Common::Rect &srcRect, const Common::Rect &destRect, const uint32 *srcPalette) { + + if (destRect.isEmpty()) + return; + const int scaleX = SCALE_THRESHOLD * srcRect.width() / destRect.width(); const int scaleY = SCALE_THRESHOLD * srcRect.height() / destRect.height();