Bug 376245, follow up which removes the scaling as the units for nsIImage:Draw are pixels, r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@224266 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
enndeakin%sympatico.ca 2007-04-06 11:40:58 +00:00
parent ec62b1c359
commit 9a85b3e95f

View File

@ -551,10 +551,6 @@ nsBaseDragService::DrawDragForImage(nsPresContext* aPresContext,
context.Rectangle(gfxRect(0, 0, destRect.width, destRect.height));
context.Fill();
PRInt32 upp = aPresContext->AppUnitsPerDevPixel();
srcRect.ScaleRoundOut(upp);
destRect.ScaleRoundOut(upp);
gfxRect inRect = gfxRect(srcRect.x, srcRect.y, srcRect.width, srcRect.height);
gfxRect outRect = gfxRect(destRect.x, destRect.y, destRect.width, destRect.height);
return img->Draw(*rc, inRect, outRect);