- printout->SetPPIPrinter(72, 72);
-
- // Set printout parameters
+ 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