summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2014-12-21 04:11:51 (GMT)
committerKevin Walzer <kw@codebykevin.com>2014-12-21 04:11:51 (GMT)
commit8faca188c488af10facd0c8470314303f1b02c5b (patch)
tree8cd84f987e3850fec0e7bf15b7ff5bede667a9e1 /macosx/tkMacOSXDraw.c
parent4f1970b5b3274109e885922378d7da7330a975c4 (diff)
downloadtk-8faca188c488af10facd0c8470314303f1b02c5b.zip
tk-8faca188c488af10facd0c8470314303f1b02c5b.tar.gz
tk-8faca188c488af10facd0c8470314303f1b02c5b.tar.bz2
Minor optimization of drawing code in OSX
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r--macosx/tkMacOSXDraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 537b2e2..9e3435d 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -1657,13 +1657,13 @@ TkMacOSXSetupDrawingContext(
CGContextSetTextDrawingMode(dc.context, kCGTextFill);
CGContextConcatCTM(dc.context, t);
if (dc.clipRgn) {
-#ifdef TK_MAC_DEBUG_DRAWING
+ #ifdef TK_MAC_DEBUG_DRAWING
CGContextSaveGState(dc.context);
ChkErr(HIShapeReplacePathInCGContext, dc.clipRgn, dc.context);
CGContextSetRGBFillColor(dc.context, 1.0, 0.0, 0.0, 0.1);
CGContextEOFillPath(dc.context);
CGContextRestoreGState(dc.context);
-#endif /* TK_MAC_DEBUG_DRAWING */
+ #endif /* TK_MAC_DEBUG_DRAWING */
CGRect r;
if (!HIShapeIsRectangular(dc.clipRgn) || !CGRectContainsRect(
*HIShapeGetBounds(dc.clipRgn, &r),