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
7129b3e1
Commit
7129b3e1
authored
Feb 19, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/layout: Remove unnecessary argument check from GetPairKerning().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4fd206ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
layout.c
dlls/dwrite/layout.c
+0
-3
layout.c
dlls/dwrite/tests/layout.c
+1
-2
No files found.
dlls/dwrite/layout.c
View file @
7129b3e1
...
...
@@ -4062,9 +4062,6 @@ static HRESULT WINAPI dwritetextlayout1_GetPairKerning(IDWriteTextLayout4 *iface
TRACE
(
"%p, %u, %p, %p.
\n
"
,
iface
,
position
,
is_pairkerning_enabled
,
r
);
if
(
position
>=
layout
->
len
)
return
S_OK
;
range
=
get_layout_range_by_pos
(
layout
,
position
);
*
is_pairkerning_enabled
=
range
->
pair_kerning
;
...
...
dlls/dwrite/tests/layout.c
View file @
7129b3e1
...
...
@@ -6337,11 +6337,10 @@ todo_wine
value
=
FALSE
;
hr
=
IDWriteTextLayout1_GetPairKerning
(
layout1
,
10
,
&
value
,
&
range
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
todo_wine
{
ok
(
range
.
startPosition
==
10
&&
range
.
length
==
~
0u
-
10
,
"Unexpected range (%u, %u).
\n
"
,
range
.
startPosition
,
range
.
length
);
ok
(
!!
value
,
"Unexpected value %d.
\n
"
,
value
);
}
range
.
startPosition
=
0
;
range
.
length
=
~
0u
;
hr
=
IDWriteTextLayout1_SetPairKerning
(
layout1
,
FALSE
,
range
);
...
...
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