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
116665d7
Commit
116665d7
authored
Feb 20, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add stub GdipGetPathGradientPath with tests.
parent
96d66f16
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
1 deletion
+43
-1
brush.c
dlls/gdiplus/brush.c
+12
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
brush.c
dlls/gdiplus/tests/brush.c
+29
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/brush.c
View file @
116665d7
...
...
@@ -1019,6 +1019,18 @@ GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient *grad,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientPath
(
GpPathGradient
*
grad
,
GpPath
*
path
)
{
static
int
calls
;
TRACE
(
"(%p, %p)
\n
"
,
grad
,
path
);
if
(
!
(
calls
++
))
FIXME
(
"not implemented
\n
"
);
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipGetPathGradientPointCount
(
GpPathGradient
*
grad
,
INT
*
count
)
{
...
...
dlls/gdiplus/gdiplus.spec
View file @
116665d7
...
...
@@ -316,7 +316,7 @@
316 stdcall GdipGetPathGradientCenterPointI(ptr ptr)
317 stdcall GdipGetPathGradientFocusScales(ptr ptr ptr)
318 stdcall GdipGetPathGradientGammaCorrection(ptr ptr)
319 st
ub GdipGetPathGradientPath
319 st
dcall GdipGetPathGradientPath(ptr ptr)
320 stdcall GdipGetPathGradientPointCount(ptr ptr)
321 stdcall GdipGetPathGradientPresetBlend(ptr ptr ptr long)
322 stdcall GdipGetPathGradientPresetBlendCount(ptr ptr)
...
...
dlls/gdiplus/tests/brush.c
View file @
116665d7
...
...
@@ -824,6 +824,34 @@ static void test_gradientsurroundcolorcount(void)
GdipDeleteBrush
((
GpBrush
*
)
grad
);
}
static
void
test_pathgradientpath
(
void
)
{
GpStatus
status
;
GpPath
*
path
=
NULL
;
GpPathGradient
*
grad
=
NULL
;
status
=
GdipCreatePathGradient
(
blendcount_ptf
,
2
,
WrapModeClamp
,
&
grad
);
expect
(
Ok
,
status
);
status
=
GdipGetPathGradientPath
(
grad
,
NULL
);
expect
(
NotImplemented
,
status
);
status
=
GdipCreatePath
(
FillModeWinding
,
&
path
);
expect
(
Ok
,
status
);
status
=
GdipGetPathGradientPath
(
NULL
,
path
);
expect
(
NotImplemented
,
status
);
status
=
GdipGetPathGradientPath
(
grad
,
path
);
expect
(
NotImplemented
,
status
);
status
=
GdipDeletePath
(
path
);
expect
(
Ok
,
status
);
status
=
GdipDeleteBrush
((
GpBrush
*
)
grad
);
expect
(
Ok
,
status
);
}
START_TEST
(
brush
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -848,6 +876,7 @@ START_TEST(brush)
test_lineblend
();
test_linelinearblend
();
test_gradientsurroundcolorcount
();
test_pathgradientpath
();
GdiplusShutdown
(
gdiplusToken
);
}
include/gdiplusflat.h
View file @
116665d7
...
...
@@ -554,6 +554,7 @@ GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
GpStatus
WINGDIPAPI
GdipGetPathGradientCenterPointI
(
GpPathGradient
*
,
GpPoint
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientFocusScales
(
GpPathGradient
*
,
REAL
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientGammaCorrection
(
GpPathGradient
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientPath
(
GpPathGradient
*
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipGetPathGradientPointCount
(
GpPathGradient
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipSetPathGradientPresetBlend
(
GpPathGradient
*
,
GDIPCONST
ARGB
*
,
GDIPCONST
REAL
*
,
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