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
This commit is contained in:
@@ -179,11 +179,12 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if !TARGET_CARBON
|
||||||
GrafPtr thePort ;
|
GrafPtr thePort ;
|
||||||
GetPort( &thePort ) ;
|
GetPort( &thePort ) ;
|
||||||
wxSafeYield(win,true);
|
wxSafeYield(win,true);
|
||||||
SetPort( thePort ) ;
|
SetPort( thePort ) ;
|
||||||
|
#endif
|
||||||
dc->StartPage();
|
dc->StartPage();
|
||||||
keepGoing = printout->OnPrintPage(pn);
|
keepGoing = printout->OnPrintPage(pn);
|
||||||
dc->EndPage();
|
dc->EndPage();
|
||||||
|
@@ -179,11 +179,12 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if !TARGET_CARBON
|
||||||
GrafPtr thePort ;
|
GrafPtr thePort ;
|
||||||
GetPort( &thePort ) ;
|
GetPort( &thePort ) ;
|
||||||
wxSafeYield(win,true);
|
wxSafeYield(win,true);
|
||||||
SetPort( thePort ) ;
|
SetPort( thePort ) ;
|
||||||
|
#endif
|
||||||
dc->StartPage();
|
dc->StartPage();
|
||||||
keepGoing = printout->OnPrintPage(pn);
|
keepGoing = printout->OnPrintPage(pn);
|
||||||
dc->EndPage();
|
dc->EndPage();
|
||||||
|
Reference in New Issue
Block a user