]> git.saurik.com Git - wxWidgets.git/commitdiff
added flushing for MacOS X buffered window immediatly when using wxWindow::Update
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 14 Jan 2002 18:08:59 +0000 (18:08 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 14 Jan 2002 18:08:59 +0000 (18:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp
src/mac/window.cpp

index 61286ac4ecb023beee68b2b55fcb1af2b0a58dec..e63dde07d7d8488172ad2905192f1b4032edbcc1 100644 (file)
@@ -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 
index 61286ac4ecb023beee68b2b55fcb1af2b0a58dec..e63dde07d7d8488172ad2905192f1b4032edbcc1 100644 (file)
@@ -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