fixing 64 bit compile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -216,12 +216,14 @@ bool wxOSXPrintData::TransferFrom( const wxPrintData &data )
|
|||||||
PMSetOrientation( m_macPageFormat , ( data.GetOrientation() == wxLANDSCAPE ) ?
|
PMSetOrientation( m_macPageFormat , ( data.GetOrientation() == wxLANDSCAPE ) ?
|
||||||
kPMLandscape : kPMPortrait , false ) ;
|
kPMLandscape : kPMPortrait , false ) ;
|
||||||
|
|
||||||
|
#ifndef __LP64__
|
||||||
// PMQualityMode not accessible via API
|
// PMQualityMode not accessible via API
|
||||||
// TODO: use our quality property to determine optimal resolution
|
// TODO: use our quality property to determine optimal resolution
|
||||||
PMResolution res;
|
PMResolution res;
|
||||||
PMTag tag = kPMMaxSquareResolution;
|
PMTag tag = kPMMaxSquareResolution;
|
||||||
PMPrinterGetPrinterResolution(printer, tag, &res);
|
PMPrinterGetPrinterResolution(printer, tag, &res);
|
||||||
PMSetResolution( m_macPageFormat, &res);
|
PMSetResolution( m_macPageFormat, &res);
|
||||||
|
#endif
|
||||||
|
|
||||||
// after setting the new resolution the format has to be updated, otherwise the page rect remains
|
// after setting the new resolution the format has to be updated, otherwise the page rect remains
|
||||||
// at the 'old' scaling
|
// at the 'old' scaling
|
||||||
@@ -477,12 +479,13 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|||||||
|
|
||||||
// on the mac we have always pixels as addressing mode with 72 dpi
|
// on the mac we have always pixels as addressing mode with 72 dpi
|
||||||
printout->SetPPIScreen(72, 72);
|
printout->SetPPIScreen(72, 72);
|
||||||
|
#ifndef __LP64__
|
||||||
PMResolution res;
|
PMResolution res;
|
||||||
wxOSXPrintData* nativeData = (wxOSXPrintData*)
|
wxOSXPrintData* nativeData = (wxOSXPrintData*)
|
||||||
(m_printDialogData.GetPrintData().GetNativeData());
|
(m_printDialogData.GetPrintData().GetNativeData());
|
||||||
PMGetResolution( (nativeData->GetPageFormat()), &res);
|
PMGetResolution( (nativeData->GetPageFormat()), &res);
|
||||||
printout->SetPPIPrinter(int(res.hRes), int(res.vRes));
|
printout->SetPPIPrinter(int(res.hRes), int(res.vRes));
|
||||||
|
#endif
|
||||||
// Set printout parameters
|
// Set printout parameters
|
||||||
printout->SetDC(dc);
|
printout->SetDC(dc);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user