diff options
author | culler <culler> | 2020-08-24 00:44:33 (GMT) |
---|---|---|
committer | culler <culler> | 2020-08-24 00:44:33 (GMT) |
commit | 5fce3b6e1af2cae22198a50413ae9712e42422b9 (patch) | |
tree | 3054fd378d73df5a0f00eaa607503488d80a8c5b /macosx/tkMacOSXDraw.c | |
parent | 45fc71df26e06074f33babae916d97880a80e9cb (diff) | |
download | tk-5fce3b6e1af2cae22198a50413ae9712e42422b9.zip tk-5fce3b6e1af2cae22198a50413ae9712e42422b9.tar.gz tk-5fce3b6e1af2cae22198a50413ae9712e42422b9.tar.bz2 |
Use graphicsPort instead of CGContext if the minimum target is earlier than 10.10.
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r-- | macosx/tkMacOSXDraw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c index 24eb380..87bd90c 100644 --- a/macosx/tkMacOSXDraw.c +++ b/macosx/tkMacOSXDraw.c @@ -17,7 +17,7 @@ #include "tkMacOSXDebug.h" #include "tkButton.h" -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 #define GET_CGCONTEXT [[NSGraphicsContext currentContext] CGContext] #else #define GET_CGCONTEXT [[NSGraphicsContext currentContext] graphicsPort] |