From b50f506ee36e39a07c342a1fdb00060d898b6d3e Mon Sep 17 00:00:00 2001 From: "vladimir%pobox.com" Date: Thu, 6 Apr 2006 18:26:55 +0000 Subject: [PATCH] b=324967, black strips while scrolling with cairo, r=stuart --- gfx/src/thebes/nsThebesImage.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gfx/src/thebes/nsThebesImage.cpp b/gfx/src/thebes/nsThebesImage.cpp index 84e33ce141cd..864f4f73b4af 100644 --- a/gfx/src/thebes/nsThebesImage.cpp +++ b/gfx/src/thebes/nsThebesImage.cpp @@ -294,9 +294,10 @@ nsThebesImage::DrawTile(nsIRenderingContext &aContext, PRInt32 x0 = aTileRect.x - aSXOffset; PRInt32 y0 = aTileRect.y - aSYOffset; - // Let's figure out if this really is repeating, or if we're just drawing a subrect - if (aTileRect.width > mWidth || - aTileRect.height > mHeight) + // Let's figure out if this really needs to repeat, + // or if we're just drawing a subrect + if (aSXOffset + aTileRect.width > mWidth || + aSYOffset + aTileRect.height > mHeight) { reallyRepeating = PR_TRUE; } else {