diff options
author | dgp <dgp@users.sourceforge.net> | 2007-06-01 04:01:30 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-06-01 04:01:30 (GMT) |
commit | 4821c67f43947a73c2360bf002f1e5832fe49506 (patch) | |
tree | 468162ebc7eb12dc4a3455db2921f461cb0549fd /macosx/tkMacOSXEvent.c | |
parent | 702b407781f8ca32a92cf1eb1ef46a76d86c15fd (diff) | |
download | tk-4821c67f43947a73c2360bf002f1e5832fe49506.zip tk-4821c67f43947a73c2360bf002f1e5832fe49506.tar.gz tk-4821c67f43947a73c2360bf002f1e5832fe49506.tar.bz2 |
merge updates from HEAD
Diffstat (limited to 'macosx/tkMacOSXEvent.c')
-rw-r--r-- | macosx/tkMacOSXEvent.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/macosx/tkMacOSXEvent.c b/macosx/tkMacOSXEvent.c index 9b1aa28..677b158 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.1 2007/05/30 13:47:43 dgp Exp $ + * RCS: @(#) $Id: tkMacOSXEvent.c,v 1.16.2.2 2007/06/01 04:01:33 dgp Exp $ */ #include "tkMacOSXInt.h" @@ -41,9 +41,21 @@ TkMacOSXFlushWindows(void) WindowRef wRef = GetWindowList(); while (wRef) { - CGrafPtr portPtr = GetWindowPort(wRef); - if (QDIsPortBuffered(portPtr)) { - QDFlushPortBuffer(portPtr, NULL); +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 + if (1 +#if MAC_OS_X_VERSION_MIN_REQUIRED < 1030 + && HIWindowFlush != NULL +#endif + ) { + ChkErr(HIWindowFlush, wRef); + } else +#endif + { + CGrafPtr portPtr = GetWindowPort(wRef); + + if (QDIsPortBuffered(portPtr)) { + QDFlushPortBuffer(portPtr, NULL); + } } wRef = GetNextWindow(wRef); } |