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
This commit is contained in:
Stefan Csomor
2004-02-21 18:11:14 +00:00
parent 7c4a8e4107
commit 5c45e86bac
2 changed files with 18 additions and 12 deletions

View 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();

View 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();