Commit 2e2a0774 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

comdlg32: Fix incorrect scaling.

parent 2bd53e27
...@@ -3572,8 +3572,8 @@ PRINTDLG_PagePaintProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -3572,8 +3572,8 @@ PRINTDLG_PagePaintProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
rcMargin = rcClient; rcMargin = rcClient;
rcMargin.left += pagesetup_get_margin_rect(data)->left * scalx; rcMargin.left += pagesetup_get_margin_rect(data)->left * scalx;
rcMargin.top += pagesetup_get_margin_rect(data)->top * scalx; rcMargin.top += pagesetup_get_margin_rect(data)->top * scaly;
rcMargin.right -= pagesetup_get_margin_rect(data)->right * scaly; rcMargin.right -= pagesetup_get_margin_rect(data)->right * scalx;
rcMargin.bottom -= pagesetup_get_margin_rect(data)->bottom * scaly; rcMargin.bottom -= pagesetup_get_margin_rect(data)->bottom * scaly;
/* if the space is too small then we make sure to not draw anything */ /* if the space is too small then we make sure to not draw anything */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment