summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das>2008-11-22 22:29:14 (GMT)
committerdas <das>2008-11-22 22:29:14 (GMT)
commit8f774fcfbfdc47876acdcbc57f65d56318db0a7f (patch)
tree412328e4ce58fcf5484f240a38961aff3b0acf99
parent16a90b0ad5d67f062cc20264b4c01f99c8ace41b (diff)
downloadtk-8f774fcfbfdc47876acdcbc57f65d56318db0a7f.zip
tk-8f774fcfbfdc47876acdcbc57f65d56318db0a7f.tar.gz
tk-8f774fcfbfdc47876acdcbc57f65d56318db0a7f.tar.bz2
reduce number of CTM manipulation calls
-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,