logPPIPrinterY = 100;
*/
- logPPIPrinterX = 72;
- logPPIPrinterY = 72;
+ logPPIPrinterX = wxPostScriptDC::GetResolution();
+ logPPIPrinterY = wxPostScriptDC::GetResolution();
printout->SetPPIScreen(logPPIScreenX, logPPIScreenY);
printout->SetPPIPrinter(logPPIPrinterX, logPPIPrinterY);
{
m_previewPrintout->SetPPIScreen(100, 100);
// m_previewPrintout->SetPPIPrinter(100, 100);
- m_previewPrintout->SetPPIPrinter(72, 72);
+ m_previewPrintout->SetPPIPrinter(wxPostScriptDC::GetResolution(), wxPostScriptDC::GetResolution());
wxSize sizeDevUnits(paper->GetSizeDeviceUnits());
+ sizeDevUnits.x = (wxCoord)((float)sizeDevUnits.x * wxPostScriptDC::GetResolution() / 72.0);
+ sizeDevUnits.y = (wxCoord)((float)sizeDevUnits.y * wxPostScriptDC::GetResolution() / 72.0);
wxSize sizeTenthsMM(paper->GetSize());
wxSize sizeMM(sizeTenthsMM.x / 10, sizeTenthsMM.y / 10);
}
// At 100%, the page should look about page-size on the screen.
- m_previewScale = (float)0.8;
+ m_previewScale = (float)0.8 * 72.0 / (float)wxPostScriptDC::GetResolution();
}
}