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
09950e3a
Commit
09950e3a
authored
Aug 05, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipPathIterIsValid with tests.
parent
b7e81d3e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
1 deletion
+54
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
pathiterator.c
dlls/gdiplus/pathiterator.c
+10
-0
pathiterator.c
dlls/gdiplus/tests/pathiterator.c
+42
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
09950e3a
...
...
@@ -455,7 +455,7 @@
@ stdcall GdipPathIterGetCount(ptr ptr)
@ stdcall GdipPathIterGetSubpathCount(ptr ptr)
@ stdcall GdipPathIterHasCurve(ptr ptr)
@ st
ub GdipPathIterIsValid
@ st
dcall GdipPathIterIsValid(ptr ptr)
@ stdcall GdipPathIterNextMarker(ptr ptr ptr ptr)
@ stub GdipPathIterNextMarkerPath
@ stub GdipPathIterNextPathType
...
...
dlls/gdiplus/pathiterator.c
View file @
09950e3a
...
...
@@ -225,3 +225,13 @@ GpStatus WINGDIPAPI GdipPathIterEnumerate(GpPathIterator* iterator, INT* resultC
return
GdipPathIterCopyData
(
iterator
,
resultCount
,
points
,
types
,
0
,
count
-
1
);
}
GpStatus
WINGDIPAPI
GdipPathIterIsValid
(
GpPathIterator
*
iterator
,
BOOL
*
valid
)
{
if
(
!
iterator
||
!
valid
)
return
InvalidParameter
;
*
valid
=
TRUE
;
return
Ok
;
}
dlls/gdiplus/tests/pathiterator.c
View file @
09950e3a
...
...
@@ -214,6 +214,47 @@ static void test_getsubpathcount(void)
GdipDeletePath
(
path
);
}
static
void
test_isvalid
(
void
)
{
GpPath
*
path
;
GpPathIterator
*
iter
;
GpStatus
stat
;
BOOL
isvalid
;
INT
start
,
end
,
result
;
GdipCreatePath
(
FillModeAlternate
,
&
path
);
/* NULL args */
GdipCreatePathIter
(
&
iter
,
path
);
stat
=
GdipPathIterIsValid
(
NULL
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipPathIterIsValid
(
iter
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipPathIterIsValid
(
NULL
,
&
isvalid
);
expect
(
InvalidParameter
,
stat
);
GdipDeletePathIter
(
iter
);
/* on empty path */
GdipCreatePathIter
(
&
iter
,
path
);
isvalid
=
FALSE
;
stat
=
GdipPathIterIsValid
(
iter
,
&
isvalid
);
expect
(
Ok
,
stat
);
expect
(
TRUE
,
isvalid
);
GdipDeletePathIter
(
iter
);
/* no markers */
GdipAddPathLine
(
path
,
50
.
0
,
50
.
0
,
110
.
0
,
40
.
0
);
GdipCreatePathIter
(
&
iter
,
path
);
GdipPathIterNextMarker
(
iter
,
&
result
,
&
start
,
&
end
);
isvalid
=
FALSE
;
stat
=
GdipPathIterIsValid
(
iter
,
&
isvalid
);
expect
(
Ok
,
stat
);
expect
(
TRUE
,
isvalid
);
GdipDeletePathIter
(
iter
);
GdipDeletePath
(
path
);
}
START_TEST
(
pathiterator
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -230,6 +271,7 @@ START_TEST(pathiterator)
test_hascurve
();
test_nextmarker
();
test_getsubpathcount
();
test_isvalid
();
GdiplusShutdown
(
gdiplusToken
);
}
include/gdiplusflat.h
View file @
09950e3a
...
...
@@ -333,6 +333,7 @@ GpStatus WINGDIPAPI GdipPathIterGetCount(GpPathIterator*,INT*);
GpStatus
WINGDIPAPI
GdipPathIterGetSubpathCount
(
GpPathIterator
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipPathIterEnumerate
(
GpPathIterator
*
,
INT
*
,
GpPointF
*
,
BYTE
*
,
INT
);
GpStatus
WINGDIPAPI
GdipPathIterHasCurve
(
GpPathIterator
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipPathIterIsValid
(
GpPathIterator
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipCloneCustomLineCap
(
GpCustomLineCap
*
,
GpCustomLineCap
**
);
GpStatus
WINGDIPAPI
GdipCreateCustomLineCap
(
GpPath
*
,
GpPath
*
,
GpLineCap
,
REAL
,
...
...
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