summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-06 13:59:15 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-07 01:13:33 +0300
commitcbb8b5db244c83062a02fb241a4a70dad381704b (patch)
tree2ba5d7bca4427f42bcddf00eb82f1995c5895af7 /vcl
parenta9c1586fc05e4c286a8fb6e651d423051eaf63ef (diff)
Bin some #if 0 code
Change-Id: I6f185b4f55418e44956f9dd51e1e300f553ac355
Diffstat (limited to 'vcl')
-rw-r--r--vcl/coretext/salcoretextlayout.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/vcl/coretext/salcoretextlayout.cxx b/vcl/coretext/salcoretextlayout.cxx
index 2cbe46a0e5df..7b1ee3a193ee 100644
--- a/vcl/coretext/salcoretextlayout.cxx
+++ b/vcl/coretext/salcoretextlayout.cxx
@@ -163,14 +163,6 @@ void CoreTextLayout::DrawText( SalGraphics& rGraphics ) const
CGContextSaveGState( gr.mrContext );
Point pos = GetDrawPosition(Point(0,0));
-#if 0
- SAL_INFO( "vcl.coretext.layout", "at pos (" << pos.X() << "," << pos.Y() << ")" );
-
- CGContextSetTextMatrix(gr.mrContext, CGAffineTransformMakeScale(1.0, -1.0));
- CGContextSetShouldAntialias( gr.mrContext, !gr.mbNonAntialiasedText );
- CGContextSetTextPosition(gr.mrContext, pos.X(), pos.Y());
- CTLineDraw(mpLine, gr.mrContext);
-#else
SAL_INFO( "vcl.coretext.layout", "at pos (" << pos.X() << "," << pos.Y() <<") ctfont=" << mpStyle->GetFont() );
CGFontRef cg_font = CTFontCopyGraphicsFont(mpStyle->GetFont(), NULL);
@@ -194,7 +186,7 @@ void CoreTextLayout::DrawText( SalGraphics& rGraphics ) const
CGContextSetShouldAntialias( gr.mrContext, !gr.mbNonAntialiasedText );
CGContextTranslateCTM(gr.mrContext, pos.X(), pos.Y());
CGContextShowGlyphs(gr.mrContext, mpGlyphs, mnGlyphCount);
-#endif
+
// restore the original graphic context transformations
CGContextRestoreGState( gr.mrContext );
}