Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
44b30c42
Commit
44b30c42
authored
May 19, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/layout: Remove duplicated helper.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ada2543e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
layout.c
dlls/dwrite/layout.c
+1
-6
No files found.
dlls/dwrite/layout.c
View file @
44b30c42
...
@@ -1471,11 +1471,6 @@ static inline IUnknown *layout_get_effect_from_pos(struct dwrite_textlayout *lay
...
@@ -1471,11 +1471,6 @@ static inline IUnknown *layout_get_effect_from_pos(struct dwrite_textlayout *lay
return
((
struct
layout_range_iface
*
)
h
)
->
iface
;
return
((
struct
layout_range_iface
*
)
h
)
->
iface
;
}
}
static
inline
BOOL
layout_is_erun_rtl
(
const
struct
layout_effective_run
*
erun
)
{
return
erun
->
run
->
u
.
regular
.
run
.
bidiLevel
&
1
;
}
/* A set of parameters that additionally splits resulting runs. It happens after shaping and all text processing,
/* A set of parameters that additionally splits resulting runs. It happens after shaping and all text processing,
no glyph changes are possible. It's understandable for drawing effects, because DrawGlyphRun() reports them as
no glyph changes are possible. It's understandable for drawing effects, because DrawGlyphRun() reports them as
one of the arguments, but it also happens for decorations, so every effective run has uniform
one of the arguments, but it also happens for decorations, so every effective run has uniform
...
@@ -1594,7 +1589,7 @@ static HRESULT layout_add_effective_run(struct dwrite_textlayout *layout, const
...
@@ -1594,7 +1589,7 @@ static HRESULT layout_add_effective_run(struct dwrite_textlayout *layout, const
/* Check if run direction matches paragraph direction, if it doesn't adjust by
/* Check if run direction matches paragraph direction, if it doesn't adjust by
run width */
run width */
if
(
layout_is_e
run_rtl
(
run
)
^
is_rtl
)
if
(
is_
run_rtl
(
run
)
^
is_rtl
)
run
->
origin
.
x
=
is_rtl
?
origin_x
-
run
->
width
:
origin_x
+
run
->
width
;
run
->
origin
.
x
=
is_rtl
?
origin_x
-
run
->
width
:
origin_x
+
run
->
width
;
else
else
run
->
origin
.
x
=
origin_x
;
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