From bec721ec75946b7659e104b637a4d1f45bef0997 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 20 Jan 2002 16:43:30 +0000 Subject: [PATCH] added proper bracketing of QDflushing for carbon only git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/window.cpp | 2 ++ src/mac/window.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 8cd9a947a1..ce34604fa1 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -1447,10 +1447,12 @@ void wxWindowMac::Update() if ( win ) { win->MacUpdate( 0 ) ; +#if TARGET_API_MAC_CARBON if ( QDIsPortBuffered( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) ) ) { QDFlushPortBuffer( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) , NULL ) ; } +#endif } } diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 8cd9a947a1..ce34604fa1 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -1447,10 +1447,12 @@ void wxWindowMac::Update() if ( win ) { win->MacUpdate( 0 ) ; +#if TARGET_API_MAC_CARBON if ( QDIsPortBuffered( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) ) ) { QDFlushPortBuffer( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) , NULL ) ; } +#endif } } -- 2.50.0