]> git.saurik.com Git - wxWidgets.git/commitdiff
workaround for blocking behaviour under carbon when running in classic
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 21 Feb 2004 18:11:14 +0000 (18:11 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 21 Feb 2004 18:11:14 +0000 (18:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/printmac.cpp
src/mac/printmac.cpp

index e95c44b3d090851f2e6b5dea6b0c93c60bc100ef..a053eb7d805f6401486e0575c8d7c1a59ec0f558 100644 (file)
@@ -648,12 +648,15 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
             }
             else
             {
-// #if !TARGET_CARBON
-                GrafPtr thePort ;
-                GetPort( &thePort ) ;
-                wxSafeYield(win,true);
-                SetPort( thePort ) ;
-// #endif                
+#if TARGET_CARBON
+                if ( UMAGetSystemVersion() >= 0x1000 )
+#endif
+                {
+                    GrafPtr thePort ;
+                    GetPort( &thePort ) ;
+                    wxSafeYield(win,true);
+                    SetPort( thePort ) ;
+                }
                 dc->StartPage();
                 keepGoing = printout->OnPrintPage(pn);
                 dc->EndPage();
index e95c44b3d090851f2e6b5dea6b0c93c60bc100ef..a053eb7d805f6401486e0575c8d7c1a59ec0f558 100644 (file)
@@ -648,12 +648,15 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
             }
             else
             {
-// #if !TARGET_CARBON
-                GrafPtr thePort ;
-                GetPort( &thePort ) ;
-                wxSafeYield(win,true);
-                SetPort( thePort ) ;
-// #endif                
+#if TARGET_CARBON
+                if ( UMAGetSystemVersion() >= 0x1000 )
+#endif
+                {
+                    GrafPtr thePort ;
+                    GetPort( &thePort ) ;
+                    wxSafeYield(win,true);
+                    SetPort( thePort ) ;
+                }
                 dc->StartPage();
                 keepGoing = printout->OnPrintPage(pn);
                 dc->EndPage();