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
797a8bb1
Commit
797a8bb1
authored
Aug 20, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Aug 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add support for GdipPathIterNextPathType.
parent
27989a0a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
pathiterator.c
dlls/gdiplus/pathiterator.c
+30
-3
pathiterator.c
dlls/gdiplus/tests/pathiterator.c
+0
-0
No files found.
dlls/gdiplus/pathiterator.c
View file @
797a8bb1
...
@@ -222,6 +222,8 @@ GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator* iterator,
...
@@ -222,6 +222,8 @@ GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator* iterator,
}
}
*
startIndex
=
iterator
->
subpath_pos
;
*
startIndex
=
iterator
->
subpath_pos
;
/* Set new pathtype position */
iterator
->
pathtype_pos
=
iterator
->
subpath_pos
;
for
(
i
=
iterator
->
subpath_pos
+
1
;
i
<
count
&&
for
(
i
=
iterator
->
subpath_pos
+
1
;
i
<
count
&&
!
(
iterator
->
pathdata
.
Types
[
i
]
==
PathPointTypeStart
);
i
++
);
!
(
iterator
->
pathdata
.
Types
[
i
]
==
PathPointTypeStart
);
i
++
);
...
@@ -238,6 +240,7 @@ GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator* iterator,
...
@@ -238,6 +240,7 @@ GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator* iterator,
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipPathIterRewind
(
GpPathIterator
*
iterator
)
GpStatus
WINGDIPAPI
GdipPathIterRewind
(
GpPathIterator
*
iterator
)
{
{
TRACE
(
"(%p)
\n
"
,
iterator
);
TRACE
(
"(%p)
\n
"
,
iterator
);
...
@@ -295,12 +298,36 @@ GpStatus WINGDIPAPI GdipPathIterIsValid(GpPathIterator* iterator, BOOL* valid)
...
@@ -295,12 +298,36 @@ GpStatus WINGDIPAPI GdipPathIterIsValid(GpPathIterator* iterator, BOOL* valid)
GpStatus
WINGDIPAPI
GdipPathIterNextPathType
(
GpPathIterator
*
iter
,
INT
*
result
,
GpStatus
WINGDIPAPI
GdipPathIterNextPathType
(
GpPathIterator
*
iter
,
INT
*
result
,
BYTE
*
type
,
INT
*
start
,
INT
*
end
)
BYTE
*
type
,
INT
*
start
,
INT
*
end
)
{
{
FIXME
(
"(%p, %p, %p, %p, %p) stub
\n
"
,
iter
,
result
,
type
,
start
,
end
);
INT
i
,
stopIndex
;
TRACE
(
"(%p, %p, %p, %p, %p)
\n
"
,
iter
,
result
,
type
,
start
,
end
);
if
(
!
iter
||
!
result
||
!
type
||
!
start
||
!
end
)
if
(
!
iter
||
!
result
||
!
type
||
!
start
||
!
end
)
return
InvalidParameter
;
return
InvalidParameter
;
return
NotImplemented
;
i
=
iter
->
pathtype_pos
;
stopIndex
=
iter
->
subpath_pos
;
if
(
i
>=
stopIndex
)
{
*
result
=
0
;
return
Ok
;
}
if
((
iter
->
pathdata
.
Types
[
i
]
&
PathPointTypePathTypeMask
)
==
PathPointTypeStart
)
i
++
;
*
start
=
i
-
1
;
if
((
i
<
stopIndex
)
&&
((
iter
->
pathdata
.
Types
[
i
]
&
PathPointTypePathTypeMask
)
!=
PathPointTypeStart
))
{
*
type
=
iter
->
pathdata
.
Types
[
i
]
&
PathPointTypePathTypeMask
;
i
++
;
for
(
;
i
<
stopIndex
;
i
++
)
{
if
((
iter
->
pathdata
.
Types
[
i
]
&
PathPointTypePathTypeMask
)
!=
*
type
)
break
;
}
}
iter
->
pathtype_pos
=
i
;
*
end
=
i
-
1
;
*
result
=
*
end
-
*
start
+
1
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipPathIterNextSubpathPath
(
GpPathIterator
*
iter
,
INT
*
result
,
GpStatus
WINGDIPAPI
GdipPathIterNextSubpathPath
(
GpPathIterator
*
iter
,
INT
*
result
,
...
...
dlls/gdiplus/tests/pathiterator.c
View file @
797a8bb1
This diff is collapsed.
Click to expand it.
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