- {
- m_err = PMPrinterGetOutputResolution( printer, native->GetPrintSettings(), &res) ;
- if ( m_err == -9589 /* kPMKeyNotFound */ )
- {
- m_err = noErr ;
- res.hRes = res.vRes = 300;
- }
- }
- }
- else
-#endif
- {
-#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
- m_err = PMPrinterGetPrinterResolution(printer, kPMCurrentValue, &res);
- if ( m_err != noErr )
- {
- m_err = PMGetResolution((PMPageFormat) (native->GetPageFormat()), &res);
- }
-#endif