dwrite: Underline reading direction matches run direction.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-01-19 23:23:01 +03:00 committed by Alexandre Julliard
parent adfd1ad2ce
commit 6024656f98
1 changed files with 2 additions and 1 deletions

View File

@ -1546,7 +1546,8 @@ static HRESULT layout_add_underline(struct dwrite_textlayout *layout, struct lay
however Y grows from baseline down for horizontal baseline. */
u->u.offset = -offset;
u->u.runHeight = 0.0f; /* FIXME */
u->u.readingDirection = layout->format.readingdir;
u->u.readingDirection = is_run_rtl(cur) ? DWRITE_READING_DIRECTION_RIGHT_TO_LEFT :
DWRITE_READING_DIRECTION_LEFT_TO_RIGHT;
u->u.flowDirection = layout->format.flow;
u->u.localeName = cur->run->u.regular.descr.localeName;
u->u.measuringMode = layout->measuringmode;