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

This commit is contained in:
Alexandre Julliard 2010-07-29 17:33:27 +02:00
parent 1da826a149
commit 1019579fd4
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ static void construct_window_to_viewport(DC *dc, XFORM *xform)
xform->eM22 = scaleY;
xform->eDx = (double)dc->vportOrgX - scaleX * (double)dc->wndOrgX;
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;
}
/***********************************************************************