зеркало из https://github.com/mozilla/gecko-dev.git
cairo: scaling twice is for losers
This commit is contained in:
Родитель
2509dbd32a
Коммит
aa48db57ab
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче