cairo: scaling twice is for losers

This commit is contained in:
vladimir%pobox.com 2004-08-18 08:24:19 +00:00
Родитель 2509dbd32a
Коммит aa48db57ab
1 изменённых файлов: 0 добавлений и 6 удалений

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

@ -94,9 +94,6 @@ nsCairoRenderingContext::Init(nsIDeviceContext* aContext, nsIWidget *aWidget)
mCairo = cairo_create ();
cairo_set_target_surface (mCairo, mDrawingSurface->GetCairoSurface());
float app2dev = mDeviceContext->AppUnitsToDevUnits();
cairo_scale(mCairo, app2dev, app2dev);
mClipRegion = new nsCairoRegion();
cairo_select_font (mCairo, "Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
@ -117,9 +114,6 @@ nsCairoRenderingContext::Init(nsIDeviceContext* aContext, nsIDrawingSurface *aSu
mCairo = cairo_create ();
cairo_set_target_surface (mCairo, mDrawingSurface->GetCairoSurface());
float app2dev = mDeviceContext->AppUnitsToDevUnits();
cairo_scale(mCairo, app2dev, app2dev);
mClipRegion = new nsCairoRegion();
cairo_select_font (mCairo, "Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);