summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXPrivate.h
diff options
context:
space:
mode:
authorculler <culler>2018-10-21 22:53:22 (GMT)
committerculler <culler>2018-10-21 22:53:22 (GMT)
commitcbe1934ea6df107ca09461c85ca4a85975d492e8 (patch)
treec4a76ca22926a5a1b883b8f1905f921386ee347c /macosx/tkMacOSXPrivate.h
parent8ea711d0aea88cecedd9fe9f32436e376da780ee (diff)
downloadtk-cbe1934ea6df107ca09461c85ca4a85975d492e8.zip
tk-cbe1934ea6df107ca09461c85ca4a85975d492e8.tar.gz
tk-cbe1934ea6df107ca09461c85ca4a85975d492e8.tar.bz2
Add a runtime check for the OS version, to decide whether to process idle events in drawRect.
Diffstat (limited to 'macosx/tkMacOSXPrivate.h')
-rw-r--r--macosx/tkMacOSXPrivate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXPrivate.h b/macosx/tkMacOSXPrivate.h
index 796b4db..7337400 100644
--- a/macosx/tkMacOSXPrivate.h
+++ b/macosx/tkMacOSXPrivate.h
@@ -265,9 +265,11 @@ VISIBILITY_HIDDEN
#ifdef __i386__
/* The Objective C runtime used on i386 requires this. */
int _poolLock;
+ int _macMinorVersion;
#endif
}
@property int poolLock;
+@property int macMinorVersion;
@end
@interface TKApplication(TKInit)
@@ -344,7 +346,7 @@ VISIBILITY_HIDDEN
@end
@interface NSWindow(TKWm)
-#if MAC_OS_X_VERSION_MIN_REQUIRED < 1012
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 101400
- (NSPoint) convertPointToScreen:(NSPoint)point;
- (NSPoint) convertPointFromScreen:(NSPoint)point;
#endif