added flushing for MacOS X buffered window immediatly when using wxWindow::Update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1423,7 +1423,13 @@ void wxWindowMac::Update()
|
|||||||
{
|
{
|
||||||
wxTopLevelWindowMac* win = MacGetTopLevelWindow( ) ;
|
wxTopLevelWindowMac* win = MacGetTopLevelWindow( ) ;
|
||||||
if ( win )
|
if ( win )
|
||||||
|
{
|
||||||
win->MacUpdate( 0 ) ;
|
win->MacUpdate( 0 ) ;
|
||||||
|
if ( QDIsPortBuffered( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) ) )
|
||||||
|
{
|
||||||
|
QDFlushPortBuffer( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) , NULL ) ;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTopLevelWindowMac* wxWindowMac::MacGetTopLevelWindow() const
|
wxTopLevelWindowMac* wxWindowMac::MacGetTopLevelWindow() const
|
||||||
|
@@ -1423,7 +1423,13 @@ void wxWindowMac::Update()
|
|||||||
{
|
{
|
||||||
wxTopLevelWindowMac* win = MacGetTopLevelWindow( ) ;
|
wxTopLevelWindowMac* win = MacGetTopLevelWindow( ) ;
|
||||||
if ( win )
|
if ( win )
|
||||||
|
{
|
||||||
win->MacUpdate( 0 ) ;
|
win->MacUpdate( 0 ) ;
|
||||||
|
if ( QDIsPortBuffered( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) ) )
|
||||||
|
{
|
||||||
|
QDFlushPortBuffer( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) , NULL ) ;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTopLevelWindowMac* wxWindowMac::MacGetTopLevelWindow() const
|
wxTopLevelWindowMac* wxWindowMac::MacGetTopLevelWindow() const
|
||||||
|
Reference in New Issue
Block a user