git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36198
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// PMDuplexMode not yet accessible via API
// PMQualityMode not yet accessible via API
// todo paperSize
// PMDuplexMode not yet accessible via API
// PMQualityMode not yet accessible via API
// todo paperSize
+ PMResolution res;
+ PMPrinter printer;
+ PMTag tag = kPMMaxSquareResolution;
+ PMSessionGetCurrentPrinter(m_macPrintSession, &printer);
+ PMPrinterGetPrinterResolution(printer, tag, &res);
+ PMSetResolution((PMPageFormat) m_macPageFormat, &res);
+
// on the mac we have always pixels as addressing mode with 72 dpi
printout->SetPPIScreen(72, 72);
// on the mac we have always pixels as addressing mode with 72 dpi
printout->SetPPIScreen(72, 72);
- printout->SetPPIPrinter(72, 72);
+ PMResolution res;
+ wxMacCarbonPrintData* nativeData = (wxMacCarbonPrintData*)
+ (m_printDialogData.GetPrintData().GetNativeData());
+ PMGetResolution((PMPageFormat) (nativeData->m_macPageFormat), &res);
+ printout->SetPPIPrinter(int(res.hRes), int(res.vRes));
// Set printout parameters
printout->SetDC(dc);
// Set printout parameters
printout->SetDC(dc);