From 3be7b38e65dc19e18e83e415e88293a053229f27 Mon Sep 17 00:00:00 2001 From: das Date: Sat, 22 Nov 2008 22:29:14 +0000 Subject: reduce number of CTM manipulation calls --- macosx/tkMacOSXFont.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c index ca11b69..aa4ea0c 100644 --- a/macosx/tkMacOSXFont.c +++ b/macosx/tkMacOSXFont.c @@ -35,7 +35,7 @@ * that such fonts can not be used for controls, because controls * definitely require a family id (this assertion needs testing). * - * RCS: @(#) $Id: tkMacOSXFont.c,v 1.41 2008/11/22 18:08:51 dkf Exp $ + * RCS: @(#) $Id: tkMacOSXFont.c,v 1.42 2008/11/22 22:29:14 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -1299,9 +1299,9 @@ DrawCharsInContext( */ if (drawingContext.context && angle != 0.0) { - CGContextTranslateCTM(drawingContext.context, x, y); - CGContextRotateCTM(drawingContext.context, angle * PI/180.0); - CGContextTranslateCTM(drawingContext.context, -x, -y); + CGContextConcatCTM(drawingContext.context, CGAffineTransformTranslate( + CGAffineTransformRotate(CGAffineTransformMakeTranslation( + x, y), angle * PI/180.0), -x, -y)); } ChkErr(ATSUDrawText, fontPtr->atsuLayout, lineOffset+urstart, urlen, fx, -- cgit v0.12