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

This commit is contained in:
enndeakin@sympatico.ca 2007-04-06 04:40:58 -07:00
parent 5441d052bb
commit 0ff9439b71

View File

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