From 0ff9439b712f6520eb34b4ca8ce5f13e9a1c76c0 Mon Sep 17 00:00:00 2001 From: "enndeakin@sympatico.ca" Date: Fri, 6 Apr 2007 04:40:58 -0700 Subject: [PATCH] Bug 376245, follow up which removes the scaling as the units for nsIImage:Draw are pixels, r+sr=roc --- widget/src/xpwidgets/nsBaseDragService.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/widget/src/xpwidgets/nsBaseDragService.cpp b/widget/src/xpwidgets/nsBaseDragService.cpp index 475c4a8c104..1b93f109c2f 100644 --- a/widget/src/xpwidgets/nsBaseDragService.cpp +++ b/widget/src/xpwidgets/nsBaseDragService.cpp @@ -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);