]> git.saurik.com Git - wxWidgets.git/commitdiff
added proper bracketing of QDflushing for carbon only
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 20 Jan 2002 16:43:30 +0000 (16:43 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 20 Jan 2002 16:43:30 +0000 (16:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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

index 8cd9a947a13bc43ef280ce29d89431aa8d81745d..ce34604fa12cccc1130fcf9d2c44e5195ad81ef7 100644 (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
       }
 }
 
index 8cd9a947a13bc43ef280ce29d89431aa8d81745d..ce34604fa12cccc1130fcf9d2c44e5195ad81ef7 100644 (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
       }
 }