Bug 633040 - [regression] Text rendering looks scaled; r=cjones a=blocking-final/fennec

This commit is contained in:
Robert O'Callahan 2011-02-10 20:01:54 -05:00
Родитель da70655f49
Коммит c0c1ff3c3b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -555,8 +555,8 @@ BasicThebesLayer::Paint(gfxContext* aContext,
{
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);