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
fdabbff3
Commit
fdabbff3
authored
Oct 28, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Oct 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Extend AddPathCurve3 test with offset and nseg.
parent
c7b706de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
graphicspath.c
dlls/gdiplus/tests/graphicspath.c
+27
-0
No files found.
dlls/gdiplus/tests/graphicspath.c
View file @
fdabbff3
...
...
@@ -954,6 +954,19 @@ static path_test_t addcurve_path3[] = {
{
23
.
3
,
13
.
3
,
PathPointTypeBezier
,
0
,
0
},
/*5*/
{
30
.
0
,
10
.
0
,
PathPointTypeBezier
,
0
,
0
}
/*6*/
};
static
path_test_t
addcurve_path4
[]
=
{
{
0
.
0
,
0
.
0
,
PathPointTypeStart
,
0
,
0
},
/*0*/
{
3
.
33
,
3
.
33
,
PathPointTypeBezier
,
0
,
0
},
/*1*/
{
6
.
66
,
3
.
33
,
PathPointTypeBezier
,
0
,
1
},
/*2*/
{
10
.
0
,
10
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*3*/
};
static
path_test_t
addcurve_path5
[]
=
{
{
10
.
0
,
10
.
0
,
PathPointTypeStart
,
0
,
0
},
/*0*/
{
13
.
3
,
16
.
6
,
PathPointTypeBezier
,
0
,
1
},
/*1*/
{
3
.
33
,
20
.
0
,
PathPointTypeBezier
,
0
,
1
},
/*2*/
{
10
.
0
,
20
.
0
,
PathPointTypeBezier
,
0
,
0
}
/*3*/
};
static
void
test_addcurve
(
void
)
{
GpStatus
status
;
...
...
@@ -1027,9 +1040,23 @@ static void test_addcurve(void)
ok_path
(
path
,
addcurve_path
,
ARRAY_SIZE
(
addcurve_path
),
FALSE
);
GdipResetPath
(
path
);
/* Skip first point */
status
=
GdipAddPathCurve3
(
path
,
points
,
4
,
1
,
2
,
1
.
0
);
expect
(
Ok
,
status
);
ok_path
(
path
,
addcurve_path3
,
ARRAY_SIZE
(
addcurve_path3
),
FALSE
);
GdipResetPath
(
path
);
/* Skip two last points */
status
=
GdipAddPathCurve3
(
path
,
points
,
4
,
0
,
1
,
1
.
0
);
expect
(
Ok
,
status
);
ok_path
(
path
,
addcurve_path4
,
ARRAY_SIZE
(
addcurve_path4
),
FALSE
);
GdipResetPath
(
path
);
/* Skip first and last points */
status
=
GdipAddPathCurve3
(
path
,
points
,
4
,
1
,
1
,
1
.
0
);
expect
(
Ok
,
status
);
ok_path
(
path
,
addcurve_path5
,
ARRAY_SIZE
(
addcurve_path5
),
FALSE
);
GdipResetPath
(
path
);
GdipDeletePath
(
path
);
}
...
...
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