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
5279ad5b
Commit
5279ad5b
authored
Nov 03, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_gradient_GetGradientStopCount().
parent
56a0e323
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
brush.c
dlls/d2d1/brush.c
+6
-2
d2d1_private.h
dlls/d2d1/d2d1_private.h
+2
-0
No files found.
dlls/d2d1/brush.c
View file @
5279ad5b
...
...
@@ -80,9 +80,11 @@ static void STDMETHODCALLTYPE d2d_gradient_GetFactory(ID2D1GradientStopCollectio
static
UINT32
STDMETHODCALLTYPE
d2d_gradient_GetGradientStopCount
(
ID2D1GradientStopCollection
*
iface
)
{
FIXME
(
"iface %p stub!
\n
"
,
iface
);
struct
d2d_gradient
*
gradient
=
impl_from_ID2D1GradientStopCollection
(
iface
);
return
0
;
TRACE
(
"iface %p.
\n
"
,
iface
);
return
gradient
->
stop_count
;
}
static
void
STDMETHODCALLTYPE
d2d_gradient_GetGradientStops
(
ID2D1GradientStopCollection
*
iface
,
...
...
@@ -124,6 +126,8 @@ void d2d_gradient_init(struct d2d_gradient *gradient, ID2D1RenderTarget *render_
gradient
->
ID2D1GradientStopCollection_iface
.
lpVtbl
=
&
d2d_gradient_vtbl
;
gradient
->
refcount
=
1
;
gradient
->
stop_count
=
stop_count
;
}
static
void
d2d_brush_init
(
struct
d2d_brush
*
brush
,
ID2D1RenderTarget
*
render_target
,
...
...
dlls/d2d1/d2d1_private.h
View file @
5279ad5b
...
...
@@ -85,6 +85,8 @@ struct d2d_gradient
{
ID2D1GradientStopCollection
ID2D1GradientStopCollection_iface
;
LONG
refcount
;
UINT32
stop_count
;
};
void
d2d_gradient_init
(
struct
d2d_gradient
*
gradient
,
ID2D1RenderTarget
*
render_target
,
...
...
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