From: Stefan Csomor Date: Sun, 20 Jan 2002 16:43:30 +0000 (+0000) Subject: added proper bracketing of QDflushing for carbon only X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bec721ec75946b7659e104b637a4d1f45bef0997 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 --- 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 } }