Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
adfd1ad2
Commit
adfd1ad2
authored
Jan 19, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Underline origin is always at the left run boundary.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
121a69e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
layout.c
dlls/dwrite/layout.c
+7
-1
No files found.
dlls/dwrite/layout.c
View file @
adfd1ad2
...
...
@@ -428,6 +428,11 @@ static HRESULT format_set_optical_alignment(struct dwrite_textformat_data *forma
return
S_OK
;
}
static
BOOL
is_run_rtl
(
const
struct
layout_effective_run
*
run
)
{
return
run
->
run
->
u
.
regular
.
run
.
bidiLevel
&
1
;
}
static
struct
layout_run
*
alloc_layout_run
(
enum
layout_run_kind
kind
)
{
struct
layout_run
*
ret
;
...
...
@@ -3144,7 +3149,8 @@ static HRESULT WINAPI dwritetextlayout_Draw(IDWriteTextLayout2 *iface,
LIST_FOR_EACH_ENTRY
(
u
,
&
This
->
underlines
,
struct
layout_underline
,
entry
)
{
IDWriteTextRenderer_DrawUnderline
(
renderer
,
context
,
u
->
run
->
origin_x
+
run
->
align_dx
+
origin_x
,
/* horizontal underline always grows from left to right, width is always added to origin regardless of run direction */
(
is_run_rtl
(
u
->
run
)
?
u
->
run
->
origin_x
-
u
->
run
->
width
:
u
->
run
->
origin_x
)
+
run
->
align_dx
+
origin_x
,
SNAP_COORD
(
u
->
run
->
origin_y
+
origin_y
),
&
u
->
u
,
u
->
run
->
effect
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment