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
640c7b5e
Commit
640c7b5e
authored
Jun 28, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Test MeasureDriverString with a character that has an underhang.
parent
0ec9d398
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+15
-0
No files found.
dlls/gdiplus/tests/graphics.c
View file @
640c7b5e
...
...
@@ -2827,6 +2827,7 @@ static void test_string_functions(void)
HDC
hdc
=
GetDC
(
hwnd
);
const
WCHAR
fontname
[]
=
{
'T'
,
'a'
,
'h'
,
'o'
,
'm'
,
'a'
,
0
};
const
WCHAR
teststring
[]
=
{
'M'
,
'M'
,
' '
,
'M'
,
'\n'
,
'M'
,
0
};
const
WCHAR
teststring2
[]
=
{
'j'
,
0
};
REAL
char_width
,
char_height
;
INT
codepointsfitted
,
linesfilled
;
GpStringFormat
*
format
;
...
...
@@ -3109,6 +3110,20 @@ static void test_string_functions(void)
todo_wine
ok
(
rc
.
Width
<
char_width
,
"got Width %0.2f, expecting less than %0.2f
\n
"
,
rc
.
Width
,
char_width
);
expectf
(
char_height
,
rc
.
Height
);
rc
.
X
=
0
;
rc
.
Y
=
0
;
rc
.
Width
=
0
;
rc
.
Height
=
0
;
status
=
GdipMeasureDriverString
(
graphics
,
teststring2
,
1
,
font
,
&
position
,
DriverStringOptionsCmapLookup
|
DriverStringOptionsRealizedAdvance
,
identity
,
&
rc
);
todo_wine
expect
(
Ok
,
status
);
expectf
(
rc
.
X
,
0
.
0
);
todo_wine
ok
(
rc
.
Y
<
0
.
0
,
"unexpected Y %0.2f
\n
"
,
rc
.
Y
);
todo_wine
ok
(
rc
.
Width
>
0
,
"unexpected Width %0.2f
\n
"
,
rc
.
Width
);
expectf
(
rc
.
Height
,
char_height
);
GdipDeleteMatrix
(
identity
);
GdipDeleteStringFormat
(
format
);
GdipDeleteBrush
(
brush
);
...
...
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