mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 376245, follow up which removes the scaling as the units for nsIImage:Draw are pixels, r+sr=roc
This commit is contained in:
parent
782da4d9ea
commit
40d00b20fb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user