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
52583589
Commit
52583589
authored
Feb 09, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix the expected GetTextMetrics() results on recent Windows.
parent
3bd1d1c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
font.c
dlls/gdi32/tests/font.c
+10
-7
No files found.
dlls/gdi32/tests/font.c
View file @
52583589
...
...
@@ -6527,7 +6527,7 @@ static void test_max_height(void)
DeleteObject
(
SelectObject
(
hdc
,
hfont_old
));
/* test the largest value */
lf
.
lfHeight
=
-
((
1
<<
1
6
)
-
1
);
lf
.
lfHeight
=
-
((
1
<<
1
4
)
-
1
);
hfont
=
CreateFontIndirectA
(
&
lf
);
hfont_old
=
SelectObject
(
hdc
,
hfont
);
memset
(
&
tm
,
0
,
sizeof
(
tm
));
...
...
@@ -6547,12 +6547,15 @@ static void test_max_height(void)
hfont_old
=
SelectObject
(
hdc
,
hfont
);
memset
(
&
tm
,
0
,
sizeof
(
tm
));
r
=
GetTextMetricsA
(
hdc
,
&
tm
);
ok
(
r
,
"GetTextMetrics failed
\n
"
);
ok
(
tm
.
tmHeight
==
tm1
.
tmHeight
,
"expected 1 ppem value (%ld), got %ld
\n
"
,
tm1
.
tmHeight
,
tm
.
tmHeight
);
ok
(
tm
.
tmAveCharWidth
==
tm1
.
tmAveCharWidth
,
"expected 1 ppem value (%ld), got %ld
\n
"
,
tm1
.
tmAveCharWidth
,
tm
.
tmAveCharWidth
);
DeleteObject
(
SelectObject
(
hdc
,
hfont_old
));
if
(
r
)
{
ok
(
r
,
"GetTextMetrics failed
\n
"
);
ok
(
tm
.
tmHeight
==
tm1
.
tmHeight
,
"expected 1 ppem value (%ld), got %ld
\n
"
,
tm1
.
tmHeight
,
tm
.
tmHeight
);
ok
(
tm
.
tmAveCharWidth
==
tm1
.
tmAveCharWidth
,
"expected 1 ppem value (%ld), got %ld
\n
"
,
tm1
.
tmAveCharWidth
,
tm
.
tmAveCharWidth
);
DeleteObject
(
SelectObject
(
hdc
,
hfont_old
));
}
winetest_pop_context
();
}
...
...
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