fix for 14835, mac specific change to clip image tiling code blit to the dest rect to emulate win32 behavior - saari r=mjudge, pavlov

This commit is contained in:
anthonyd%netscape.com 2002-09-12 06:20:20 +00:00
parent eb9b1f27a0
commit bc6e072ea3

View File

@ -1609,6 +1609,8 @@ nsresult nsImageMac::DrawTileQuickly(nsIRenderingContext &aContext,
{
Rect imageDestRect = imageRect;
::OffsetRect(&imageDestRect, x, y);
imageDestRect.bottom = PR_MIN(imageDestRect.bottom, aY1);
imageDestRect.right = PR_MIN(imageDestRect.right, aX1);
// CopyBits will do the truncation for us at the edges
CopyBitsWithMask((BitMap*)(&mImagePixmap),