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
e21af554
Commit
e21af554
authored
May 30, 2013
by
Vincent Povirk
Committed by
Alexandre Julliard
May 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add test for measuring a single line that exactly fits.
parent
35342cef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+17
-0
No files found.
dlls/gdiplus/tests/graphics.c
View file @
e21af554
...
...
@@ -3042,6 +3042,23 @@ static void test_string_functions(void)
expect
(
2
,
linesfilled
);
char_height
=
bounds
.
Height
-
char_bounds
.
Height
;
/* Measure the first line. */
status
=
GdipMeasureString
(
graphics
,
teststring
,
4
,
font
,
&
rc
,
NULL
,
&
bounds
,
&
codepointsfitted
,
&
linesfilled
);
expect
(
Ok
,
status
);
expectf
(
0
.
0
,
bounds
.
X
);
expectf
(
0
.
0
,
bounds
.
Y
);
expect
(
4
,
codepointsfitted
);
expect
(
1
,
linesfilled
);
/* Give just enough space to fit the first line. */
rc
.
Width
=
bounds
.
Width
;
status
=
GdipMeasureString
(
graphics
,
teststring
,
5
,
font
,
&
rc
,
NULL
,
&
bounds
,
&
codepointsfitted
,
&
linesfilled
);
expect
(
Ok
,
status
);
expectf
(
0
.
0
,
bounds
.
X
);
expectf
(
0
.
0
,
bounds
.
Y
);
todo_wine
expect
(
5
,
codepointsfitted
);
todo_wine
expect
(
1
,
linesfilled
);
/* Cut off everything after the first space. */
rc
.
Width
=
char_bounds
.
Width
+
char_width
*
2
.
1
;
...
...
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