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
This commit is contained in:
Stefan Csomor 2002-01-20 16:43:30 +00:00
parent 5dbb17e27f
commit bec721ec75
2 changed files with 4 additions and 0 deletions

View File

@ -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
}
}

View File

@ -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
}
}