Bug 633040 - [regression] Text rendering looks scaled; r=cjones a=blocking-final/fennec
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 10 Feb 2011 20:01:54 -0500
changeset 62318 9e8f138a8b9e73a1e350ef6b77932230d228a06a
parent 62317 5c77943a504d44f99c6a694e2f9fc0aa913f485b
child 62319 722013f84d1f80353fb8e8fc0ad1725f000f16dc
push idunknown
push userunknown
push dateunknown
reviewerscjones, blocking-final, fennec
bugs633040
milestone2.0b12pre
Bug 633040 - [regression] Text rendering looks scaled; r=cjones a=blocking-final/fennec
gfx/layers/basic/BasicLayers.cpp
--- a/gfx/layers/basic/BasicLayers.cpp
+++ b/gfx/layers/basic/BasicLayers.cpp
@@ -550,18 +550,18 @@ BasicThebesLayer::Paint(gfxContext* aCon
 
       aContext->Restore();
     }
     return;
   }
 
   {
     gfxSize scale = aContext->CurrentMatrix().ScaleFactors(PR_TRUE);
-    float paintXRes = gfxUtils::ClampToScaleFactor(BasicManager()->XResolution() * scale.width);
-    float paintYRes = gfxUtils::ClampToScaleFactor(BasicManager()->YResolution() * scale.height);
+    float paintXRes = BasicManager()->XResolution() * gfxUtils::ClampToScaleFactor(scale.width);
+    float paintYRes = BasicManager()->YResolution() * gfxUtils::ClampToScaleFactor(scale.height);
     Buffer::PaintState state =
       mBuffer.BeginPaint(this, contentType, paintXRes, paintYRes);
     mValidRegion.Sub(mValidRegion, state.mRegionToInvalidate);
 
     if (state.mContext) {
       // The area that became invalid and is visible needs to be repainted
       // (this could be the whole visible area if our buffer switched
       // from RGB to RGBA, because we might need to repaint with