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
5863eabd
Commit
5863eabd
authored
Jun 29, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: GdipGetPathLastPoint implementation.
parent
c40c08b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
1 deletion
+42
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphicspath.c
dlls/gdiplus/graphicspath.c
+14
-0
graphicspath.c
dlls/gdiplus/tests/graphicspath.c
+26
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
5863eabd
...
...
@@ -342,7 +342,7 @@
@ stdcall GdipGetPathGradientSurroundColorsWithCount(ptr ptr ptr)
@ stub GdipGetPathGradientTransform
@ stub GdipGetPathGradientWrapMode
@ st
ub GdipGetPathLastPoint
@ st
dcall GdipGetPathLastPoint(ptr ptr)
@ stdcall GdipGetPathPoints(ptr ptr long)
@ stdcall GdipGetPathPointsI(ptr ptr long)
@ stdcall GdipGetPathTypes(ptr ptr long)
...
...
dlls/gdiplus/graphicspath.c
View file @
5863eabd
...
...
@@ -551,6 +551,20 @@ GpStatus WINGDIPAPI GdipGetPathFillMode(GpPath *path, GpFillMode *fillmode)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathLastPoint
(
GpPath
*
path
,
GpPointF
*
lastPoint
)
{
INT
count
;
if
(
!
path
||
!
lastPoint
)
return
InvalidParameter
;
count
=
path
->
pathdata
.
Count
;
if
(
count
>
0
)
*
lastPoint
=
path
->
pathdata
.
Points
[
count
-
1
];
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathPoints
(
GpPath
*
path
,
GpPointF
*
points
,
INT
count
)
{
if
(
!
path
)
...
...
dlls/gdiplus/tests/graphicspath.c
View file @
5863eabd
...
...
@@ -671,6 +671,31 @@ static void test_rect(void)
GdipDeletePath
(
path
);
}
static
void
test_lastpoint
(
void
)
{
GpStatus
status
;
GpPath
*
path
;
GpPointF
ptf
;
GdipCreatePath
(
FillModeAlternate
,
&
path
);
status
=
GdipAddPathRectangle
(
path
,
5
.
0
,
5
.
0
,
100
.
0
,
50
.
0
);
expect
(
Ok
,
status
);
/* invalid args */
status
=
GdipGetPathLastPoint
(
NULL
,
&
ptf
);
expect
(
InvalidParameter
,
status
);
status
=
GdipGetPathLastPoint
(
path
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipGetPathLastPoint
(
NULL
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipGetPathLastPoint
(
path
,
&
ptf
);
expect
(
Ok
,
status
);
expect
(
TRUE
,
(
ptf
.
X
==
5
.
0
)
&&
(
ptf
.
Y
==
55
.
0
));
GdipDeletePath
(
path
);
}
START_TEST
(
graphicspath
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -693,6 +718,7 @@ START_TEST(graphicspath)
test_linei
();
test_rect
();
test_polygon
();
test_lastpoint
();
GdiplusShutdown
(
gdiplusToken
);
}
include/gdiplusflat.h
View file @
5863eabd
...
...
@@ -238,6 +238,7 @@ GpStatus WINGDIPAPI GdipCreatePath2I(GDIPCONST GpPoint*,GDIPCONST BYTE*,INT,GpFi
GpStatus
WINGDIPAPI
GdipDeletePath
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipGetPathData
(
GpPath
*
,
GpPathData
*
);
GpStatus
WINGDIPAPI
GdipGetPathFillMode
(
GpPath
*
,
GpFillMode
*
);
GpStatus
WINGDIPAPI
GdipGetPathLastPoint
(
GpPath
*
,
GpPointF
*
);
GpStatus
WINGDIPAPI
GdipGetPathPoints
(
GpPath
*
,
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipGetPathPointsI
(
GpPath
*
,
GpPoint
*
,
INT
);
GpStatus
WINGDIPAPI
GdipGetPathTypes
(
GpPath
*
,
BYTE
*
,
INT
);
...
...
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