d2d1: Fix text position in DrawText().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
41e49d4596
commit
f37c83452e
|
@ -1189,7 +1189,7 @@ static void STDMETHODCALLTYPE d2d_device_context_DrawText(ID2D1DeviceContext *if
|
|||
return;
|
||||
}
|
||||
|
||||
d2d_point_set(&origin, layout_rect->left, layout_rect->top);
|
||||
d2d_point_set(&origin, min(layout_rect->left, layout_rect->right), min(layout_rect->top, layout_rect->bottom));
|
||||
ID2D1DeviceContext_DrawTextLayout(iface, origin, text_layout, brush, options);
|
||||
IDWriteTextLayout_Release(text_layout);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue