Merge branch 'html-print-cleanup'
Simplify wxHTML pagination code and make it easier to reuse from applications. See https://github.com/wxWidgets/wxWidgets/pull/817
This commit is contained in:
@@ -1023,19 +1023,8 @@ void wxGtkPrinter::BeginPrint(wxPrintout *printout, GtkPrintOperation *operation
|
||||
return;
|
||||
}
|
||||
|
||||
printout->SetPPIScreen(wxGetDisplayPPI());
|
||||
printout->SetPPIPrinter( printDC->GetResolution(),
|
||||
printDC->GetResolution() );
|
||||
printout->SetUp(*m_dc);
|
||||
|
||||
printout->SetDC(m_dc);
|
||||
|
||||
int w, h;
|
||||
m_dc->GetSize(&w, &h);
|
||||
printout->SetPageSizePixels((int)w, (int)h);
|
||||
printout->SetPaperRectPixels(wxRect(0, 0, w, h));
|
||||
int mw, mh;
|
||||
m_dc->GetSizeMM(&mw, &mh);
|
||||
printout->SetPageSizeMM((int)mw, (int)mh);
|
||||
printout->OnPreparePrinting();
|
||||
|
||||
// Get some parameters from the printout, if defined.
|
||||
|
Reference in New Issue
Block a user