mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
5441d052bb
commit
0ff9439b71
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user