summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2021-04-22 19:21:00 (GMT)
committerculler <culler>2021-04-22 19:21:00 (GMT)
commit64594c2a80336e1a00dc711942a4ed5fb5dd0e98 (patch)
tree940f650a5f909dfccab13aaa73493e8e25e7ded2 /macosx
parent019923f12e5ac43053840de0701390146ae57907 (diff)
downloadtk-64594c2a80336e1a00dc711942a4ed5fb5dd0e98.zip
tk-64594c2a80336e1a00dc711942a4ed5fb5dd0e98.tar.gz
tk-64594c2a80336e1a00dc711942a4ed5fb5dd0e98.tar.bz2
Make debug printing conditional in ttkMacOSXTheme.c
Diffstat (limited to 'macosx')
-rw-r--r--macosx/ttkMacOSXTheme.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index 6b1aff6..ce098f4 100644
--- a/macosx/ttkMacOSXTheme.c
+++ b/macosx/ttkMacOSXTheme.c
@@ -555,8 +555,10 @@ static void SolidFillRoundedRectangle(
CGContextSetFillColorWithColor(context, CGCOLOR(color));
CGContextBeginPath(context);
CGContextAddPath(context, path);
+#ifdef TK_MAC_DEBUG_CG
fprintf(stderr, "Filling rounded rectangle at %s\n",
NSStringFromRect(bounds).UTF8String);
+#endif
CGContextFillPath(context);
CFRelease(path);
}