diff options
author | culler <culler> | 2020-07-23 17:48:52 (GMT) |
---|---|---|
committer | culler <culler> | 2020-07-23 17:48:52 (GMT) |
commit | 80385f2de091d03d59900dc2acf17c23beeac2aa (patch) | |
tree | cfc85b3dfc93ceed5c14e2e650dc90f34e6261cc | |
parent | e0db4c3e05bfcb007efd84b383f9f103d1905cc9 (diff) | |
download | tk-80385f2de091d03d59900dc2acf17c23beeac2aa.zip tk-80385f2de091d03d59900dc2acf17c23beeac2aa.tar.gz tk-80385f2de091d03d59900dc2acf17c23beeac2aa.tar.bz2 |
Fix build on Mavericks.
-rw-r--r-- | macosx/tkMacOSXDraw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c index 68e7ada..fd8a1eb 100644 --- a/macosx/tkMacOSXDraw.c +++ b/macosx/tkMacOSXDraw.c @@ -17,7 +17,7 @@ #include "tkMacOSXDebug.h" #include "tkButton.h" -#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 #define GET_CGCONTEXT [[NSGraphicsContext currentContext] CGContext] #else #define GET_CGCONTEXT [[NSGraphicsContext currentContext] graphicsPort] @@ -1666,8 +1666,7 @@ TkMacOSXSetupDrawingContext( * cycle. */ - CGRect currentClip = CGContextGetClipBoundingBox( - [NSGraphicsContext currentContext].CGContext); + CGRect currentClip = CGContextGetClipBoundingBox(GET_CGCONTEXT); if (!NSContainsRect(currentClip, clipBounds)) { [view addTkDirtyRect:clipBounds]; } |