- logPPIScreenX = 100;
- logPPIScreenY = 100;
-
- /*
- // Correct values for X/PostScript?
- logPPIPrinterX = 100;
- logPPIPrinterY = 100;
- */
-
- logPPIPrinterX = wxPostScriptDC::GetResolution();
- logPPIPrinterY = wxPostScriptDC::GetResolution();
-
- printout->SetPPIScreen(logPPIScreenX, logPPIScreenY);
- printout->SetPPIPrinter(logPPIPrinterX, logPPIPrinterY);
+ printout->SetPPIScreen( (ScreenPixels.GetWidth() * 25.4) / ScreenMM.GetWidth(),
+ (ScreenPixels.GetHeight() * 25.4) / ScreenMM.GetHeight() );
+ printout->SetPPIPrinter( wxPostScriptDC::GetResolution(),
+ wxPostScriptDC::GetResolution() );