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
40278137
Commit
40278137
authored
Mar 27, 2010
by
Justin Chevrier
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add GdipGetPathGradientSurroundColorCount stub with tests.
parent
88b4263a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
1 deletion
+68
-1
brush.c
dlls/gdiplus/brush.c
+10
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
brush.c
dlls/gdiplus/tests/brush.c
+56
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/brush.c
View file @
40278137
...
@@ -1167,6 +1167,16 @@ GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient
...
@@ -1167,6 +1167,16 @@ GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient
return
NotImplemented
;
return
NotImplemented
;
}
}
GpStatus
WINGDIPAPI
GdipGetPathGradientSurroundColorCount
(
GpPathGradient
*
brush
,
INT
*
count
)
{
TRACE
(
"(%p, %p)
\n
"
,
brush
,
count
);
if
(
!
brush
||
!
count
)
return
InvalidParameter
;
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientWrapMode
(
GpPathGradient
*
brush
,
GpStatus
WINGDIPAPI
GdipGetPathGradientWrapMode
(
GpPathGradient
*
brush
,
GpWrapMode
*
wrapmode
)
GpWrapMode
*
wrapmode
)
{
{
...
...
dlls/gdiplus/gdiplus.spec
View file @
40278137
...
@@ -338,7 +338,7 @@
...
@@ -338,7 +338,7 @@
@ stub GdipGetPathGradientPresetBlendCount
@ stub GdipGetPathGradientPresetBlendCount
@ stdcall GdipGetPathGradientRect(ptr ptr)
@ stdcall GdipGetPathGradientRect(ptr ptr)
@ stdcall GdipGetPathGradientRectI(ptr ptr)
@ stdcall GdipGetPathGradientRectI(ptr ptr)
@ st
ub GdipGetPathGradientSurroundColorCount
@ st
dcall GdipGetPathGradientSurroundColorCount(ptr ptr)
@ stdcall GdipGetPathGradientSurroundColorsWithCount(ptr ptr ptr)
@ stdcall GdipGetPathGradientSurroundColorsWithCount(ptr ptr ptr)
@ stub GdipGetPathGradientTransform
@ stub GdipGetPathGradientTransform
@ stdcall GdipGetPathGradientWrapMode(ptr ptr)
@ stdcall GdipGetPathGradientWrapMode(ptr ptr)
...
...
dlls/gdiplus/tests/brush.c
View file @
40278137
...
@@ -646,6 +646,61 @@ static void test_linelinearblend(void)
...
@@ -646,6 +646,61 @@ static void test_linelinearblend(void)
expect
(
Ok
,
status
);
expect
(
Ok
,
status
);
}
}
static
void
test_gradientsurroundcolorcount
(
void
)
{
GpStatus
status
;
GpPathGradient
*
grad
;
ARGB
*
color
;
INT
count
=
3
;
status
=
GdipCreatePathGradient
(
blendcount_ptf
,
2
,
WrapModeClamp
,
&
grad
);
expect
(
Ok
,
status
);
color
=
GdipAlloc
(
sizeof
(
ARGB
[
3
]));
status
=
GdipSetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
expect
(
InvalidParameter
,
status
);
GdipFree
(
color
);
count
=
2
;
color
=
GdipAlloc
(
sizeof
(
ARGB
[
2
]));
color
[
0
]
=
0x00ff0000
;
color
[
1
]
=
0x0000ff00
;
status
=
GdipSetPathGradientSurroundColorsWithCount
(
NULL
,
color
,
&
count
);
expect
(
InvalidParameter
,
status
);
status
=
GdipSetPathGradientSurroundColorsWithCount
(
grad
,
NULL
,
&
count
);
expect
(
InvalidParameter
,
status
);
/* WinXP crashes on this test */
if
(
0
)
{
status
=
GdipSetPathGradientSurroundColorsWithCount
(
grad
,
color
,
NULL
);
expect
(
InvalidParameter
,
status
);
}
status
=
GdipSetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
todo_wine
expect
(
Ok
,
status
);
expect
(
2
,
count
);
status
=
GdipGetPathGradientSurroundColorCount
(
NULL
,
&
count
);
expect
(
InvalidParameter
,
status
);
status
=
GdipGetPathGradientSurroundColorCount
(
grad
,
NULL
);
expect
(
InvalidParameter
,
status
);
count
=
0
;
status
=
GdipGetPathGradientSurroundColorCount
(
grad
,
&
count
);
todo_wine
expect
(
Ok
,
status
);
todo_wine
expect
(
2
,
count
);
GdipFree
(
color
);
GdipDeleteBrush
((
GpBrush
*
)
grad
);
}
START_TEST
(
brush
)
START_TEST
(
brush
)
{
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
@@ -669,6 +724,7 @@ START_TEST(brush)
...
@@ -669,6 +724,7 @@ START_TEST(brush)
test_gradientgetrect
();
test_gradientgetrect
();
test_lineblend
();
test_lineblend
();
test_linelinearblend
();
test_linelinearblend
();
test_gradientsurroundcolorcount
();
GdiplusShutdown
(
gdiplusToken
);
GdiplusShutdown
(
gdiplusToken
);
}
}
include/gdiplusflat.h
View file @
40278137
...
@@ -563,6 +563,7 @@ GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL);
...
@@ -563,6 +563,7 @@ GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL);
GpStatus
WINGDIPAPI
GdipSetPathGradientSurroundColorsWithCount
(
GpPathGradient
*
,
GpStatus
WINGDIPAPI
GdipSetPathGradientSurroundColorsWithCount
(
GpPathGradient
*
,
GDIPCONST
ARGB
*
,
INT
*
);
GDIPCONST
ARGB
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipSetPathGradientWrapMode
(
GpPathGradient
*
,
GpWrapMode
);
GpStatus
WINGDIPAPI
GdipSetPathGradientWrapMode
(
GpPathGradient
*
,
GpWrapMode
);
GpStatus
WINGDIPAPI
GdipGetPathGradientSurroundColorCount
(
GpPathGradient
*
,
INT
*
);
/* PathIterator */
/* PathIterator */
GpStatus
WINGDIPAPI
GdipCreatePathIter
(
GpPathIterator
**
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipCreatePathIter
(
GpPathIterator
**
,
GpPath
*
);
...
...
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