summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authorculler <culler>2020-08-24 00:44:33 (GMT)
committerculler <culler>2020-08-24 00:44:33 (GMT)
commit5fce3b6e1af2cae22198a50413ae9712e42422b9 (patch)
tree3054fd378d73df5a0f00eaa607503488d80a8c5b /macosx/tkMacOSXDraw.c
parent45fc71df26e06074f33babae916d97880a80e9cb (diff)
downloadtk-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.c2
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]