Bug 293543. RenderOffscreen needs to create a surface sized in pixels, not twips. r+sr=bzbarsky,a=shaver

This commit is contained in:
roc+%cs.cmu.edu 2005-05-10 04:17:56 +00:00
parent c2b8e6122f
commit b4e308b124

View File

@ -3468,6 +3468,8 @@ NS_IMETHODIMP nsViewManager::RenderOffscreen(nsIView* aView, nsRect aRect,
return NS_ERROR_FAILURE;
nsRect bounds(nsPoint(0, 0), aRect.Size());
bounds.ScaleRoundOut(mTwipsToPixels);
nsIDrawingSurface* surface;
nsresult rv
= tmpContext->CreateDrawingSurface(bounds, NS_CREATEDRAWINGSURFACE_FOR_PIXEL_ACCESS,