TSAGE: Fix problem with scrolling wide scenes.

This commit is contained in:
Paul Gilbert 2012-02-05 20:31:56 +11:00
parent 07f1d33ef7
commit 45e61b985c

View File

@ -602,7 +602,7 @@ void GfxSurface::copyFrom(GfxSurface &src, Rect srcBounds, Rect destBounds, Regi
destBounds.bottom = destSurface.h;
if (destBounds.isValidRect() && !((destBounds.right < 0) || (destBounds.bottom < 0)
|| (destBounds.left >= SCREEN_WIDTH) || (destBounds.top >= SCREEN_HEIGHT))) {
|| (destBounds.left >= destSurface.w) || (destBounds.top >= destSurface.h))) {
// Register the affected area as dirty
addDirtyRect(destBounds);