From db978ce982a820ef1d1d2682c54840157122e602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 16 Jun 2008 08:08:49 +0000 Subject: [PATCH] fixed SetUserScale() calls to use correct scale on Y axis git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmprint.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 325b1b4b43..26aae71024 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -200,7 +200,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: */ @@ -406,7 +407,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);