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
4b0f2eb6
Commit
4b0f2eb6
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 GetFontCollection().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68cfa3a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
layout.c
dlls/dwrite/layout.c
+0
-3
layout.c
dlls/dwrite/tests/layout.c
+9
-1
No files found.
dlls/dwrite/layout.c
View file @
4b0f2eb6
...
...
@@ -3403,9 +3403,6 @@ static HRESULT WINAPI dwritetextlayout_layout_GetFontCollection(IDWriteTextLayou
TRACE
(
"%p, %u, %p, %p.
\n
"
,
iface
,
position
,
collection
,
r
);
if
(
position
>=
layout
->
len
)
return
S_OK
;
range
=
get_layout_range_by_pos
(
layout
,
position
);
*
collection
=
range
->
collection
;
if
(
*
collection
)
...
...
dlls/dwrite/tests/layout.c
View file @
4b0f2eb6
...
...
@@ -5973,8 +5973,8 @@ if (SUCCEEDED(hr))
static
void
test_layout_range_length
(
void
)
{
IDWriteFontCollection
*
collection
,
*
collection2
;
IDWriteInlineObject
*
sign
,
*
object
;
IDWriteFontCollection
*
collection
;
IDWriteTypography
*
typography
;
DWRITE_FONT_STRETCH
stretch
;
IDWriteTextLayout1
*
layout1
;
...
...
@@ -6305,6 +6305,14 @@ static void test_layout_range_length(void)
hr
=
IDWriteTextLayout_SetFontCollection
(
layout
,
NULL
,
range
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
range
.
startPosition
=
range
.
length
=
0
;
collection2
=
NULL
;
hr
=
IDWriteTextLayout_GetFontCollection
(
layout
,
10
,
&
collection2
,
&
range
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
range
.
length
==
~
0u
,
"Unexpected range length %u.
\n
"
,
range
.
length
);
if
(
collection2
)
IDWriteFontCollection_Release
(
collection2
);
IDWriteFontCollection_Release
(
collection
);
if
(
SUCCEEDED
(
IDWriteTextLayout_QueryInterface
(
layout
,
&
IID_IDWriteTextLayout1
,
(
void
**
)
&
layout1
)))
...
...
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