Commit 1019579f authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Fix offset for mirrored devices that have a non-zero viewport offset.

parent 1da826a1
...@@ -296,7 +296,7 @@ static void construct_window_to_viewport(DC *dc, XFORM *xform) ...@@ -296,7 +296,7 @@ static void construct_window_to_viewport(DC *dc, XFORM *xform)
xform->eM22 = scaleY; xform->eM22 = scaleY;
xform->eDx = (double)dc->vportOrgX - scaleX * (double)dc->wndOrgX; xform->eDx = (double)dc->vportOrgX - scaleX * (double)dc->wndOrgX;
xform->eDy = (double)dc->vportOrgY - scaleY * (double)dc->wndOrgY; xform->eDy = (double)dc->vportOrgY - scaleY * (double)dc->wndOrgY;
if (dc->layout & LAYOUT_RTL) xform->eDx += dc->vis_rect.right - dc->vis_rect.left - 1; if (dc->layout & LAYOUT_RTL) xform->eDx = dc->vis_rect.right - dc->vis_rect.left - 1 - xform->eDx;
} }
/*********************************************************************** /***********************************************************************
......
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