diff options
author | culler <culler> | 2020-07-27 16:27:47 (GMT) |
---|---|---|
committer | culler <culler> | 2020-07-27 16:27:47 (GMT) |
commit | 50092ff480b5a538c303cc781bf30505d4c2ba08 (patch) | |
tree | b02dbbf1709ef6db989d4c47fd3c8442513e1dd6 /macosx/tkMacOSXDraw.c | |
parent | ad4ba7d19aaf93762d9c0c3605c14a5aca7849a6 (diff) | |
parent | 916ea258d01119b9f5e02836ac8a92c4d6c4f520 (diff) | |
download | tk-50092ff480b5a538c303cc781bf30505d4c2ba08.zip tk-50092ff480b5a538c303cc781bf30505d4c2ba08.tar.gz tk-50092ff480b5a538c303cc781bf30505d4c2ba08.tar.bz2 |
Merge 8.6: fix testing and build issues on the various supported versions of macOS.
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-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 6c72e0a..b6a834f 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] @@ -1652,8 +1652,7 @@ TkMacOSXSetupDrawingContext( * cycle. */ - CGRect currentClip = CGContextGetClipBoundingBox( - [NSGraphicsContext currentContext].CGContext); + CGRect currentClip = CGContextGetClipBoundingBox(GET_CGCONTEXT); if (!NSContainsRect(currentClip, clipBounds)) { [view addTkDirtyRect:clipBounds]; } |