do some more pr_mins so we tile the right stuff
git-svn-id: svn://10.0.0.236/branches/NOIMG_20010801_BRANCH@100493 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -849,10 +849,9 @@ NS_IMETHODIMP nsImageMac::DrawTile(nsIRenderingContext &aContext,
|
||||
|
||||
for (PRInt32 y = aY0; y < aY1; y += mHeight)
|
||||
for (PRInt32 x = aX0; x < aX1; x += mHeight)
|
||||
Draw(aContext,aSurface, x,y,
|
||||
PR_MIN(validWidth, aX1-x),
|
||||
PR_MIN(validHeight, aY1-y));
|
||||
|
||||
Draw(aContext, aSurface,
|
||||
0, 0, PR_MIN(validWidth, aX1-x), PR_MIN(validHeight, aY1-y),
|
||||
x, y, PR_MIN(validWidth, aX1-x), PR_MIN(validHeight, aY1-y));
|
||||
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user