diff options
author | dgp <dgp@users.sourceforge.net> | 2007-06-12 16:22:40 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-06-12 16:22:40 (GMT) |
commit | e533770d061a74bb7d2e59f1fd3347fb70782bb9 (patch) | |
tree | 9ece99851b1a6a191cc4e20fd532a1ac6abb094d /macosx/tkMacOSXEvent.c | |
parent | c1154a9f8c1aca618e8369de987fbe28a0d7f3b9 (diff) | |
download | tk-e533770d061a74bb7d2e59f1fd3347fb70782bb9.zip tk-e533770d061a74bb7d2e59f1fd3347fb70782bb9.tar.gz tk-e533770d061a74bb7d2e59f1fd3347fb70782bb9.tar.bz2 |
merge updates from HEAD
Diffstat (limited to 'macosx/tkMacOSXEvent.c')
-rw-r--r-- | macosx/tkMacOSXEvent.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/macosx/tkMacOSXEvent.c b/macosx/tkMacOSXEvent.c index 677b158..bf0ad4a 100644 --- a/macosx/tkMacOSXEvent.c +++ b/macosx/tkMacOSXEvent.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXEvent.c,v 1.16.2.2 2007/06/01 04:01:33 dgp Exp $ + * RCS: @(#) $Id: tkMacOSXEvent.c,v 1.16.2.3 2007/06/12 16:22:42 dgp Exp $ */ #include "tkMacOSXInt.h" @@ -41,22 +41,15 @@ TkMacOSXFlushWindows(void) WindowRef wRef = GetWindowList(); while (wRef) { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 - if (1 -#if MAC_OS_X_VERSION_MIN_REQUIRED < 1030 - && HIWindowFlush != NULL -#endif - ) { + TK_IF_MAC_OS_X_API (3, HIWindowFlush, ChkErr(HIWindowFlush, wRef); - } else -#endif - { + ) TK_ELSE_MAC_OS_X (3, CGrafPtr portPtr = GetWindowPort(wRef); if (QDIsPortBuffered(portPtr)) { QDFlushPortBuffer(portPtr, NULL); } - } + ) TK_ENDIF wRef = GetNextWindow(wRef); } } |