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
8b368b9c
Commit
8b368b9c
authored
Sep 20, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Sep 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: GetTextExtentPoint and GetTextExtentExPoint behave differently if there's…
gdi32: GetTextExtentPoint and GetTextExtentExPoint behave differently if there's a \n in the string.
parent
7be29570
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
font.c
dlls/gdi/tests/font.c
+7
-2
No files found.
dlls/gdi/tests/font.c
View file @
8b368b9c
...
@@ -381,8 +381,13 @@ static void test_text_extents(void)
...
@@ -381,8 +381,13 @@ static void test_text_extents(void)
if the extents array is untouched. */
if the extents array is untouched. */
GetTextExtentExPointW
(
hdc
,
wt
,
len
,
32767
,
&
fit1
,
extents
,
&
sz1
);
GetTextExtentExPointW
(
hdc
,
wt
,
len
,
32767
,
&
fit1
,
extents
,
&
sz1
);
GetTextExtentPointW
(
hdc
,
wt
,
len
,
&
sz2
);
GetTextExtentPointW
(
hdc
,
wt
,
len
,
&
sz2
);
ok
(
sz1
.
cx
==
sz2
.
cx
&&
sz1
.
cy
==
sz2
.
cy
,
ok
(
sz1
.
cy
==
sz2
.
cy
,
"results from GetTextExtentExPointW and GetTextExtentPointW differ
\n
"
);
"cy from GetTextExtentExPointW (%ld) and GetTextExtentPointW (%ld) differ
\n
"
,
sz1
.
cy
,
sz2
.
cy
);
todo_wine
{
/* The \n in the string is apparently handled differently in GetTextExtentPoint and GetTextExtentExPoint */
ok
(
sz1
.
cx
!=
sz2
.
cx
,
"cx from GetTextExtentExPointW (%ld) and GetTextExtentPointW (%ld) are the same
\n
"
,
sz1
.
cx
,
sz2
.
cx
);
}
for
(
i
=
1
;
i
<
len
;
++
i
)
for
(
i
=
1
;
i
<
len
;
++
i
)
ok
(
extents
[
i
-
1
]
<=
extents
[
i
],
ok
(
extents
[
i
-
1
]
<=
extents
[
i
],
"GetTextExtentExPointW generated a non-increasing sequence of partial extents (at position %d)
\n
"
,
"GetTextExtentExPointW generated a non-increasing sequence of partial extents (at position %d)
\n
"
,
...
...
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