From: Stefan Csomor Date: Sat, 17 May 2003 07:44:04 +0000 (+0000) Subject: temporary fix for carbon (problems under OS 9) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b47d37a99fe8b508da762e1fab59e4a42a47d993?ds=inline temporary fix for carbon (problems under OS 9) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/printmac.cpp b/src/mac/carbon/printmac.cpp index 274f8b1c9e..b7e23a7ac8 100644 --- a/src/mac/carbon/printmac.cpp +++ b/src/mac/carbon/printmac.cpp @@ -179,11 +179,12 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) } else { +#if !TARGET_CARBON GrafPtr thePort ; GetPort( &thePort ) ; wxSafeYield(win,true); SetPort( thePort ) ; - +#endif dc->StartPage(); keepGoing = printout->OnPrintPage(pn); dc->EndPage(); diff --git a/src/mac/printmac.cpp b/src/mac/printmac.cpp index 274f8b1c9e..b7e23a7ac8 100644 --- a/src/mac/printmac.cpp +++ b/src/mac/printmac.cpp @@ -179,11 +179,12 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) } else { +#if !TARGET_CARBON GrafPtr thePort ; GetPort( &thePort ) ; wxSafeYield(win,true); SetPort( thePort ) ; - +#endif dc->StartPage(); keepGoing = printout->OnPrintPage(pn); dc->EndPage();