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
828e7173
Commit
828e7173
authored
Dec 08, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/layout: Simplify run direction check condition.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a005d43b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
layout.c
dlls/dwrite/layout.c
+3
-4
No files found.
dlls/dwrite/layout.c
View file @
828e7173
...
...
@@ -1594,10 +1594,9 @@ static HRESULT layout_add_effective_run(struct dwrite_textlayout *layout, const
run
->
width
=
get_cluster_range_width
(
layout
,
first_cluster
,
first_cluster
+
cluster_count
);
memset
(
&
run
->
bbox
,
0
,
sizeof
(
run
->
bbox
));
/* Check if run direction matches paragraph direction, if it doesn't adjust by
run width */
if
(
is_run_rtl
(
run
)
^
is_rtl
)
run
->
origin
.
x
=
is_rtl
?
origin_x
-
run
->
width
:
origin_x
+
run
->
width
;
/* Adjust by run width if direction differs. */
if
(
is_run_rtl
(
run
)
!=
is_rtl
)
run
->
origin
.
x
=
origin_x
+
(
is_rtl
?
-
run
->
width
:
run
->
width
);
else
run
->
origin
.
x
=
origin_x
;
...
...
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