summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
authordas <das>2008-11-22 22:29:14 (GMT)
committerdas <das>2008-11-22 22:29:14 (GMT)
commit3be7b38e65dc19e18e83e415e88293a053229f27 (patch)
tree412328e4ce58fcf5484f240a38961aff3b0acf99 /macosx/tkMacOSXFont.c
parent2935f70082641faffcb7be36702ba5c420283536 (diff)
downloadtk-3be7b38e65dc19e18e83e415e88293a053229f27.zip
tk-3be7b38e65dc19e18e83e415e88293a053229f27.tar.gz
tk-3be7b38e65dc19e18e83e415e88293a053229f27.tar.bz2
reduce number of CTM manipulation calls
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r--macosx/tkMacOSXFont.c8
1 files 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,