From 5c45e86bac1d3f0b08a452f6436481824f79fe5a Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 21 Feb 2004 18:11:14 +0000 Subject: [PATCH] workaround for blocking behaviour under carbon when running in classic git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/printmac.cpp | 15 +++++++++------ src/mac/printmac.cpp | 15 +++++++++------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/mac/carbon/printmac.cpp b/src/mac/carbon/printmac.cpp index e95c44b3d0..a053eb7d80 100644 --- a/src/mac/carbon/printmac.cpp +++ b/src/mac/carbon/printmac.cpp @@ -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(); diff --git a/src/mac/printmac.cpp b/src/mac/printmac.cpp index e95c44b3d0..a053eb7d80 100644 --- a/src/mac/printmac.cpp +++ b/src/mac/printmac.cpp @@ -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(); -- 2.47.2