From: Stefan Csomor Date: Mon, 14 Jan 2002 18:08:59 +0000 (+0000) Subject: added flushing for MacOS X buffered window immediatly when using wxWindow::Update X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f175912347b1a7aec23963c7037f7f4a47280634 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 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 61286ac4ec..e63dde07d7 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -1423,7 +1423,13 @@ void wxWindowMac::Update() { wxTopLevelWindowMac* win = MacGetTopLevelWindow( ) ; if ( win ) + { win->MacUpdate( 0 ) ; + if ( QDIsPortBuffered( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) ) ) + { + QDFlushPortBuffer( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) , NULL ) ; + } + } } wxTopLevelWindowMac* wxWindowMac::MacGetTopLevelWindow() const diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 61286ac4ec..e63dde07d7 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -1423,7 +1423,13 @@ void wxWindowMac::Update() { wxTopLevelWindowMac* win = MacGetTopLevelWindow( ) ; if ( win ) + { win->MacUpdate( 0 ) ; + if ( QDIsPortBuffered( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) ) ) + { + QDFlushPortBuffer( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) , NULL ) ; + } + } } wxTopLevelWindowMac* wxWindowMac::MacGetTopLevelWindow() const