From aa48db57aba4a18afb44961d06e1cad156e2d560 Mon Sep 17 00:00:00 2001 From: "vladimir%pobox.com" Date: Wed, 18 Aug 2004 08:24:19 +0000 Subject: [PATCH] cairo: scaling twice is for losers --- gfx/src/cairo/nsCairoRenderingContext.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gfx/src/cairo/nsCairoRenderingContext.cpp b/gfx/src/cairo/nsCairoRenderingContext.cpp index 11c738ab58e1..525198432732 100644 --- a/gfx/src/cairo/nsCairoRenderingContext.cpp +++ b/gfx/src/cairo/nsCairoRenderingContext.cpp @@ -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);