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
48dfe437
Commit
48dfe437
authored
Sep 27, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_radial_gradient_brush_GetGradientStopCollection().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5aef3d63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
brush.c
dlls/d2d1/brush.c
+9
-2
d2d1_private.h
dlls/d2d1/d2d1_private.h
+1
-0
No files found.
dlls/d2d1/brush.c
View file @
48dfe437
...
...
@@ -622,7 +622,10 @@ static ULONG STDMETHODCALLTYPE d2d_radial_gradient_brush_Release(ID2D1RadialGrad
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
{
ID2D1GradientStopCollection_Release
(
&
brush
->
u
.
radial
.
gradient
->
ID2D1GradientStopCollection_iface
);
d2d_brush_destroy
(
brush
);
}
return
refcount
;
}
...
...
@@ -744,9 +747,11 @@ static float STDMETHODCALLTYPE d2d_radial_gradient_brush_GetRadiusY(ID2D1RadialG
static
void
STDMETHODCALLTYPE
d2d_radial_gradient_brush_GetGradientStopCollection
(
ID2D1RadialGradientBrush
*
iface
,
ID2D1GradientStopCollection
**
gradient
)
{
FIXME
(
"iface %p, gradient %p stub!
\n
"
,
iface
,
gradient
);
struct
d2d_brush
*
brush
=
impl_from_ID2D1RadialGradientBrush
(
iface
);
TRACE
(
"iface %p, gradient %p.
\n
"
,
iface
,
gradient
);
*
gradient
=
NULL
;
ID2D1GradientStopCollection_AddRef
(
*
gradient
=
&
brush
->
u
.
radial
.
gradient
->
ID2D1GradientStopCollection_iface
)
;
}
static
const
struct
ID2D1RadialGradientBrushVtbl
d2d_radial_gradient_brush_vtbl
=
...
...
@@ -780,6 +785,8 @@ HRESULT d2d_radial_gradient_brush_create(ID2D1Factory *factory,
return
E_OUTOFMEMORY
;
d2d_brush_init
(
b
,
factory
,
D2D_BRUSH_TYPE_RADIAL
,
brush_desc
,
(
ID2D1BrushVtbl
*
)
&
d2d_radial_gradient_brush_vtbl
);
b
->
u
.
radial
.
gradient
=
unsafe_impl_from_ID2D1GradientStopCollection
(
gradient
);
ID2D1GradientStopCollection_AddRef
(
&
b
->
u
.
radial
.
gradient
->
ID2D1GradientStopCollection_iface
);
b
->
u
.
radial
.
centre
=
gradient_desc
->
center
;
b
->
u
.
radial
.
offset
=
gradient_desc
->
gradientOriginOffset
;
...
...
dlls/d2d1/d2d1_private.h
View file @
48dfe437
...
...
@@ -241,6 +241,7 @@ struct d2d_brush
}
linear
;
struct
{
struct
d2d_gradient
*
gradient
;
D2D1_POINT_2F
centre
;
D2D1_POINT_2F
offset
;
}
radial
;
...
...
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