From: Václav Slavík Date: Mon, 16 Jun 2008 08:10:06 +0000 (+0000) Subject: fixed SetUserScale() calls to use correct scale on Y axis X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9f7e7edb78aa19d6aed53b113aa953c24d6335b1 fixed SetUserScale() calls to use correct scale on Y axis git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index e4dbbcfda7..158483e3a9 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -206,7 +206,8 @@ void wxHtmlPrintout::OnPreparePrinting() wxDisplaySize(&scr_w, &scr_h); GetDC()->GetSize(&dc_w, &dc_h); - GetDC()->SetUserScale((double)dc_w / (double)pageWidth, (double)dc_w / (double)pageWidth); + GetDC()->SetUserScale((double)dc_w / (double)pageWidth, + (double)dc_h / (double)pageHeight); /* prepare headers/footers renderer: */ @@ -412,7 +413,8 @@ void wxHtmlPrintout::RenderPage(wxDC *dc, int page) GetPPIScreen(&ppiScreenX, &ppiScreenY); wxUnusedVar(ppiScreenX); - dc->SetUserScale((double)dc_w / (double)pageWidth, (double)dc_w / (double)pageWidth); + dc->SetUserScale((double)dc_w / (double)pageWidth, + (double)dc_h / (double)pageHeight); m_Renderer->SetDC(dc, (double)ppiPrinterY / (double)ppiScreenY);