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
e5bfd522
Commit
e5bfd522
authored
Oct 18, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Use existing to create factory instance.
parent
f36e1b91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
layout.c
dlls/dwrite/tests/layout.c
+9
-12
No files found.
dlls/dwrite/tests/layout.c
View file @
e5bfd522
...
...
@@ -5008,7 +5008,6 @@ static void test_MapCharacters(void)
UINT32
mappedlength
,
vs_length
;
IDWriteFontFallback
*
fallback
;
IDWriteFactory2
*
factory2
;
IDWriteFactory
*
factory
;
IDWriteFont
*
font
;
WCHAR
buffW
[
50
];
WCHAR
name
[
64
];
...
...
@@ -5019,12 +5018,10 @@ static void test_MapCharacters(void)
WCHAR
*
ptr
;
HRESULT
hr
;
factory
=
create_factory
();
hr
=
IDWriteFactory_QueryInterface
(
factory
,
&
IID_IDWriteFactory2
,
(
void
**
)
&
factory2
);
IDWriteFactory_Release
(
factory
);
if
(
hr
!=
S_OK
)
{
win_skip
(
"MapCharacters() is not supported
\n
"
);
factory2
=
create_factory_iid
(
&
IID_IDWriteFactory2
);
if
(
!
factory2
)
{
win_skip
(
"MapCharacters() is not supported.
\n
"
);
return
;
}
...
...
@@ -5160,15 +5157,15 @@ static void test_MapCharacters(void)
resource_loader
=
create_resource_file_loader
();
resource_collection_loader
=
create_resource_collection_loader
(
resource_loader
);
hr
=
IDWriteFactory
_RegisterFontFileLoader
(
factory
,
resource_loader
);
hr
=
IDWriteFactory
2_RegisterFontFileLoader
(
factory2
,
resource_loader
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDWriteFactory
_RegisterFontCollectionLoader
(
factory
,
resource_collection_loader
);
hr
=
IDWriteFactory
2_RegisterFontCollectionLoader
(
factory2
,
resource_collection_loader
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hrsrc
=
FindResourceA
(
GetModuleHandleA
(
NULL
),
(
LPCSTR
)
MAKEINTRESOURCE
(
1
),
(
LPCSTR
)
RT_RCDATA
);
ok
(
!!
hrsrc
,
"Failed to find font resource
\n
"
);
hr
=
IDWriteFactory
_CreateCustomFontCollection
(
factory
,
resource_collection_loader
,
&
hrsrc
,
sizeof
(
hrsrc
),
&
collection
);
hr
=
IDWriteFactory
2_CreateCustomFontCollection
(
factory2
,
resource_collection_loader
,
&
hrsrc
,
sizeof
(
hrsrc
),
&
collection
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
/* Variation selectors are skipped. */
...
...
@@ -5257,9 +5254,9 @@ static void test_MapCharacters(void)
IDWriteFontCollection_Release
(
collection
);
hr
=
IDWriteFactory
_UnregisterFontCollectionLoader
(
factory
,
resource_collection_loader
);
hr
=
IDWriteFactory
2_UnregisterFontCollectionLoader
(
factory2
,
resource_collection_loader
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDWriteFactory
_UnregisterFontFileLoader
(
factory
,
resource_loader
);
hr
=
IDWriteFactory
2_UnregisterFontFileLoader
(
factory2
,
resource_loader
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IDWriteFontCollectionLoader_Release
(
resource_collection_loader
);
...
...
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