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
2148545e
Commit
2148545e
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_GetGradientOriginOffset().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
85c44198
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
brush.c
dlls/d2d1/brush.c
+5
-2
d2d1_private.h
dlls/d2d1/d2d1_private.h
+1
-0
No files found.
dlls/d2d1/brush.c
View file @
2148545e
...
...
@@ -715,9 +715,11 @@ static D2D1_POINT_2F * STDMETHODCALLTYPE d2d_radial_gradient_brush_GetCenter(ID2
static
D2D1_POINT_2F
*
STDMETHODCALLTYPE
d2d_radial_gradient_brush_GetGradientOriginOffset
(
ID2D1RadialGradientBrush
*
iface
,
D2D1_POINT_2F
*
offset
)
{
FIXME
(
"iface %p, offset %p stub!
\n
"
,
iface
,
offset
);
struct
d2d_brush
*
brush
=
impl_from_ID2D1RadialGradientBrush
(
iface
);
TRACE
(
"iface %p, offset %p.
\n
"
,
iface
,
offset
);
d2d_point_set
(
offset
,
0
.
0
f
,
0
.
0
f
)
;
*
offset
=
brush
->
u
.
radial
.
offset
;
return
offset
;
}
...
...
@@ -775,6 +777,7 @@ HRESULT d2d_radial_gradient_brush_create(ID2D1Factory *factory,
d2d_brush_init
(
b
,
factory
,
D2D_BRUSH_TYPE_RADIAL
,
brush_desc
,
(
ID2D1BrushVtbl
*
)
&
d2d_radial_gradient_brush_vtbl
);
b
->
u
.
radial
.
centre
=
gradient_desc
->
center
;
b
->
u
.
radial
.
offset
=
gradient_desc
->
gradientOriginOffset
;
TRACE
(
"Created brush %p.
\n
"
,
b
);
*
brush
=
b
;
...
...
dlls/d2d1/d2d1_private.h
View file @
2148545e
...
...
@@ -242,6 +242,7 @@ struct d2d_brush
struct
{
D2D1_POINT_2F
centre
;
D2D1_POINT_2F
offset
;
}
radial
;
struct
{
...
...
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