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
86cdcb69
Commit
86cdcb69
authored
Oct 27, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Oct 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix default tension for GdipAddPathCurve and GdipAddPathClosedCurve.
parent
375f7bfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
graphicspath.c
dlls/gdiplus/graphicspath.c
+4
-4
graphicspath.c
dlls/gdiplus/tests/graphicspath.c
+14
-14
No files found.
dlls/gdiplus/graphicspath.c
View file @
86cdcb69
...
...
@@ -421,7 +421,7 @@ GpStatus WINGDIPAPI GdipAddPathClosedCurve(GpPath *path, GDIPCONST GpPointF *poi
{
TRACE
(
"(%p, %p, %d)
\n
"
,
path
,
points
,
count
);
return
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
1
.
0
);
return
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
0
.
5
);
}
GpStatus
WINGDIPAPI
GdipAddPathClosedCurveI
(
GpPath
*
path
,
GDIPCONST
GpPoint
*
points
,
...
...
@@ -429,7 +429,7 @@ GpStatus WINGDIPAPI GdipAddPathClosedCurveI(GpPath *path, GDIPCONST GpPoint *poi
{
TRACE
(
"(%p, %p, %d)
\n
"
,
path
,
points
,
count
);
return
GdipAddPathClosedCurve2I
(
path
,
points
,
count
,
1
.
0
);
return
GdipAddPathClosedCurve2I
(
path
,
points
,
count
,
0
.
5
);
}
GpStatus
WINGDIPAPI
GdipAddPathClosedCurve2
(
GpPath
*
path
,
GDIPCONST
GpPointF
*
points
,
...
...
@@ -537,7 +537,7 @@ GpStatus WINGDIPAPI GdipAddPathCurve(GpPath *path, GDIPCONST GpPointF *points, I
if
(
!
path
||
!
points
||
count
<=
1
)
return
InvalidParameter
;
return
GdipAddPathCurve2
(
path
,
points
,
count
,
1
.
0
);
return
GdipAddPathCurve2
(
path
,
points
,
count
,
0
.
5
);
}
GpStatus
WINGDIPAPI
GdipAddPathCurveI
(
GpPath
*
path
,
GDIPCONST
GpPoint
*
points
,
INT
count
)
...
...
@@ -547,7 +547,7 @@ GpStatus WINGDIPAPI GdipAddPathCurveI(GpPath *path, GDIPCONST GpPoint *points, I
if
(
!
path
||
!
points
||
count
<=
1
)
return
InvalidParameter
;
return
GdipAddPathCurve2I
(
path
,
points
,
count
,
1
.
0
);
return
GdipAddPathCurve2I
(
path
,
points
,
count
,
0
.
5
);
}
GpStatus
WINGDIPAPI
GdipAddPathCurve2
(
GpPath
*
path
,
GDIPCONST
GpPointF
*
points
,
INT
count
,
...
...
dlls/gdiplus/tests/graphicspath.c
View file @
86cdcb69
...
...
@@ -921,14 +921,14 @@ static path_test_t addcurve_path[] = {
};
static
path_test_t
addcurve_path_default_tension
[]
=
{
{
0
.
0
,
0
.
0
,
PathPointTypeStart
,
0
,
0
},
/*0*/
{
1
.
66
,
1
.
66
,
PathPointTypeBezier
,
0
,
1
},
/*1*/
{
8
.
33
,
6
.
66
,
PathPointTypeBezier
,
0
,
1
},
/*2*/
{
1
.
66
,
1
.
66
,
PathPointTypeBezier
,
0
,
0
},
/*1*/
{
8
.
33
,
6
.
66
,
PathPointTypeBezier
,
0
,
0
},
/*2*/
{
10
.
0
,
10
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*3*/
{
11
.
6
,
13
.
3
,
PathPointTypeBezier
,
0
,
1
},
/*4*/
{
6
.
66
,
20
.
0
,
PathPointTypeBezier
,
0
,
1
},
/*5*/
{
11
.
6
,
13
.
3
,
PathPointTypeBezier
,
0
,
0
},
/*4*/
{
6
.
66
,
20
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*5*/
{
10
.
0
,
20
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*6*/
{
13
.
3
,
20
.
0
,
PathPointTypeBezier
,
0
,
1
},
/*7*/
{
26
.
6
,
11
.
6
,
PathPointTypeBezier
,
0
,
1
},
/*8*/
{
13
.
3
,
20
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*7*/
{
26
.
6
,
11
.
6
,
PathPointTypeBezier
,
0
,
0
},
/*8*/
{
30
.
0
,
10
.
0
,
PathPointTypeBezier
,
0
,
0
}
/*9*/
};
static
path_test_t
addcurve_path2
[]
=
{
...
...
@@ -1051,17 +1051,17 @@ static path_test_t addclosedcurve_path[] = {
};
static
path_test_t
addclosedcurve_path_default_tension
[]
=
{
{
0
.
0
,
0
.
0
,
PathPointTypeStart
,
0
,
0
},
/*0*/
{
-
3
.
33
,
0
.
0
,
PathPointTypeBezier
,
0
,
1
},
/*1*/
{
8
.
33
,
6
.
66
,
PathPointTypeBezier
,
0
,
1
},
/*2*/
{
-
3
.
33
,
0
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*1*/
{
8
.
33
,
6
.
66
,
PathPointTypeBezier
,
0
,
0
},
/*2*/
{
10
.
0
,
10
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*3*/
{
11
.
6
,
13
.
3
,
PathPointTypeBezier
,
0
,
1
},
/*4*/
{
6
.
66
,
20
.
0
,
PathPointTypeBezier
,
0
,
1
},
/*5*/
{
11
.
6
,
13
.
3
,
PathPointTypeBezier
,
0
,
0
},
/*4*/
{
6
.
66
,
20
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*5*/
{
10
.
0
,
20
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*6*/
{
13
.
3
,
20
.
0
,
PathPointTypeBezier
,
0
,
1
},
/*7*/
{
31
.
6
,
13
.
3
,
PathPointTypeBezier
,
0
,
1
},
/*8*/
{
13
.
3
,
20
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*7*/
{
31
.
6
,
13
.
3
,
PathPointTypeBezier
,
0
,
0
},
/*8*/
{
30
.
0
,
10
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*9*/
{
28
.
3
,
6
.
66
,
PathPointTypeBezier
,
0
,
1
},
/*10*/
{
3
.
33
,
0
.
0
,
PathPointTypeBezier
,
0
,
1
},
/*11*/
{
28
.
3
,
6
.
66
,
PathPointTypeBezier
,
0
,
0
},
/*10*/
{
3
.
33
,
0
.
0
,
PathPointTypeBezier
,
0
,
0
},
/*11*/
{
0
.
0
,
0
.
0
,
PathPointTypeBezier
|
PathPointTypeCloseSubpath
,
0
,
0
}
/*12*/
};
static
void
test_addclosedcurve
(
void
)
...
...
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