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
59a9c1cf
Commit
59a9c1cf
authored
Aug 27, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: GdipPathIterNextPathType stub added with test.
parent
1def017e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
1 deletion
+44
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
pathiterator.c
dlls/gdiplus/pathiterator.c
+13
-0
pathiterator.c
dlls/gdiplus/tests/pathiterator.c
+29
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
59a9c1cf
...
@@ -458,7 +458,7 @@
...
@@ -458,7 +458,7 @@
@ stdcall GdipPathIterIsValid(ptr ptr)
@ stdcall GdipPathIterIsValid(ptr ptr)
@ stdcall GdipPathIterNextMarker(ptr ptr ptr ptr)
@ stdcall GdipPathIterNextMarker(ptr ptr ptr ptr)
@ stdcall GdipPathIterNextMarkerPath(ptr ptr ptr)
@ stdcall GdipPathIterNextMarkerPath(ptr ptr ptr)
@ st
ub GdipPathIterNextPathType
@ st
dcall GdipPathIterNextPathType(ptr ptr ptr ptr ptr)
@ stdcall GdipPathIterNextSubpath(ptr ptr ptr ptr ptr)
@ stdcall GdipPathIterNextSubpath(ptr ptr ptr ptr ptr)
@ stdcall GdipPathIterNextSubpathPath(ptr ptr ptr ptr)
@ stdcall GdipPathIterNextSubpathPath(ptr ptr ptr ptr)
@ stdcall GdipPathIterRewind(ptr)
@ stdcall GdipPathIterRewind(ptr)
...
...
dlls/gdiplus/pathiterator.c
View file @
59a9c1cf
/*
/*
* Copyright (C) 2007 Google (Evan Stade)
* Copyright (C) 2007 Google (Evan Stade)
* Copyright (C) 2008 Nikolay Sivov <bunglehead at gmail dot com>
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -26,6 +27,9 @@
...
@@ -26,6 +27,9 @@
#include "gdiplus.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
#include "gdiplus_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
gdiplus
);
GpStatus
WINGDIPAPI
GdipCreatePathIter
(
GpPathIterator
**
iterator
,
GpPath
*
path
)
GpStatus
WINGDIPAPI
GdipCreatePathIter
(
GpPathIterator
**
iterator
,
GpPath
*
path
)
{
{
...
@@ -262,6 +266,15 @@ GpStatus WINGDIPAPI GdipPathIterIsValid(GpPathIterator* iterator, BOOL* valid)
...
@@ -262,6 +266,15 @@ GpStatus WINGDIPAPI GdipPathIterIsValid(GpPathIterator* iterator, BOOL* valid)
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipPathIterNextPathType
(
GpPathIterator
*
iter
,
INT
*
result
,
BYTE
*
type
,
INT
*
start
,
INT
*
end
)
{
if
(
!
iter
||
!
result
||
!
type
||
!
start
||
!
end
)
return
InvalidParameter
;
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipPathIterNextSubpathPath
(
GpPathIterator
*
iter
,
INT
*
result
,
GpStatus
WINGDIPAPI
GdipPathIterNextSubpathPath
(
GpPathIterator
*
iter
,
INT
*
result
,
GpPath
*
path
,
BOOL
*
closed
)
GpPath
*
path
,
BOOL
*
closed
)
{
{
...
...
dlls/gdiplus/tests/pathiterator.c
View file @
59a9c1cf
...
@@ -476,6 +476,34 @@ static void test_nextsubpath(void)
...
@@ -476,6 +476,34 @@ static void test_nextsubpath(void)
GdipDeletePath
(
path
);
GdipDeletePath
(
path
);
}
}
static
void
test_nextpathtype
(
void
)
{
GpPath
*
path
;
GpPathIterator
*
iter
;
GpStatus
stat
;
INT
start
,
end
,
result
;
BYTE
type
;
GdipCreatePath
(
FillModeAlternate
,
&
path
);
GdipCreatePathIter
(
&
iter
,
path
);
/* NULL arguments */
stat
=
GdipPathIterNextPathType
(
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipPathIterNextPathType
(
iter
,
NULL
,
NULL
,
NULL
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipPathIterNextPathType
(
iter
,
&
result
,
NULL
,
NULL
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipPathIterNextPathType
(
iter
,
NULL
,
&
type
,
NULL
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipPathIterNextPathType
(
iter
,
NULL
,
NULL
,
&
start
,
&
end
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipPathIterNextPathType
(
iter
,
NULL
,
&
type
,
&
start
,
&
end
);
expect
(
InvalidParameter
,
stat
);
GdipDeletePath
(
path
);
}
START_TEST
(
pathiterator
)
START_TEST
(
pathiterator
)
{
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
@@ -496,6 +524,7 @@ START_TEST(pathiterator)
...
@@ -496,6 +524,7 @@ START_TEST(pathiterator)
test_isvalid
();
test_isvalid
();
test_nextsubpathpath
();
test_nextsubpathpath
();
test_nextsubpath
();
test_nextsubpath
();
test_nextpathtype
();
GdiplusShutdown
(
gdiplusToken
);
GdiplusShutdown
(
gdiplusToken
);
}
}
include/gdiplusflat.h
View file @
59a9c1cf
...
@@ -336,6 +336,7 @@ GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator*,INT*,GpPointF*,BYTE*,
...
@@ -336,6 +336,7 @@ GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator*,INT*,GpPointF*,BYTE*,
INT
,
INT
);
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipPathIterNextMarker
(
GpPathIterator
*
,
INT
*
,
INT
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipPathIterNextMarker
(
GpPathIterator
*
,
INT
*
,
INT
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipPathIterNextMarkerPath
(
GpPathIterator
*
,
INT
*
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipPathIterNextMarkerPath
(
GpPathIterator
*
,
INT
*
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipPathIterNextPathType
(
GpPathIterator
*
,
INT
*
,
BYTE
*
,
INT
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipPathIterNextSubpath
(
GpPathIterator
*
,
INT
*
,
INT
*
,
INT
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipPathIterNextSubpath
(
GpPathIterator
*
,
INT
*
,
INT
*
,
INT
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipPathIterNextSubpathPath
(
GpPathIterator
*
,
INT
*
,
GpPath
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipPathIterNextSubpathPath
(
GpPathIterator
*
,
INT
*
,
GpPath
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipPathIterRewind
(
GpPathIterator
*
);
GpStatus
WINGDIPAPI
GdipPathIterRewind
(
GpPathIterator
*
);
...
...
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