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
a92390f7
Commit
a92390f7
authored
Jul 16, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Some tests for CreateGdiCompatibleTextLayout().
parent
e68c6389
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
layout.c
dlls/dwrite/tests/layout.c
+29
-0
No files found.
dlls/dwrite/tests/layout.c
View file @
a92390f7
...
...
@@ -785,6 +785,16 @@ static void test_CreateTextLayout(void)
IDWriteFactory_Release
(
factory
);
}
static
DWRITE_MATRIX
layoutcreate_transforms
[]
=
{
{
1
.
0
,
0
.
0
,
0
.
0
,
1
.
0
,
0
.
0
,
0
.
0
},
{
1
.
0
,
0
.
0
,
0
.
0
,
1
.
0
,
0
.
3
,
0
.
2
},
{
1
.
0
,
0
.
0
,
0
.
0
,
1
.
0
,
-
0
.
3
,
-
0
.
2
},
{
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
},
{
1
.
0
,
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
},
{
1
.
0
,
2
.
0
,
0
.
5
,
1
.
0
,
0
.
0
,
0
.
0
},
};
static
void
test_CreateGdiCompatibleTextLayout
(
void
)
{
static
const
WCHAR
strW
[]
=
{
's'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
...
...
@@ -793,6 +803,7 @@ static void test_CreateGdiCompatibleTextLayout(void)
IDWriteFactory
*
factory
;
FLOAT
dimension
;
HRESULT
hr
;
int
i
;
factory
=
create_factory
();
...
...
@@ -839,6 +850,24 @@ static void test_CreateGdiCompatibleTextLayout(void)
ok
(
dimension
==
100
.
0
,
"got %f
\n
"
,
dimension
);
IDWriteTextLayout_Release
(
layout
);
/* negative, zero ppdip */
hr
=
IDWriteFactory_CreateGdiCompatibleTextLayout
(
factory
,
strW
,
1
,
format
,
100
.
0
,
100
.
0
,
-
1
.
0
,
NULL
,
FALSE
,
&
layout
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteTextLayout_Release
(
layout
);
hr
=
IDWriteFactory_CreateGdiCompatibleTextLayout
(
factory
,
strW
,
1
,
format
,
100
.
0
,
100
.
0
,
0
.
0
,
NULL
,
FALSE
,
&
layout
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteTextLayout_Release
(
layout
);
/* transforms */
for
(
i
=
0
;
i
<
sizeof
(
layoutcreate_transforms
)
/
sizeof
(
layoutcreate_transforms
[
0
]);
i
++
)
{
hr
=
IDWriteFactory_CreateGdiCompatibleTextLayout
(
factory
,
strW
,
1
,
format
,
100
.
0
,
100
.
0
,
1
.
0
,
&
layoutcreate_transforms
[
i
],
FALSE
,
&
layout
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteTextLayout_Release
(
layout
);
}
IDWriteTextFormat_Release
(
format
);
IDWriteFactory_Release
(
factory
);
}
...
...
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