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
68ce000d
Commit
68ce000d
authored
Jul 30, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_stroke_style_GetFactory().
parent
e5c793e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
d2d1_private.h
dlls/d2d1/d2d1_private.h
+2
-0
stroke.c
dlls/d2d1/stroke.c
+8
-2
No files found.
dlls/d2d1/d2d1_private.h
View file @
68ce000d
...
...
@@ -164,6 +164,8 @@ struct d2d_stroke_style
{
ID2D1StrokeStyle
ID2D1StrokeStyle_iface
;
LONG
refcount
;
ID2D1Factory
*
factory
;
};
void
d2d_stroke_style_init
(
struct
d2d_stroke_style
*
style
,
ID2D1Factory
*
factory
,
...
...
dlls/d2d1/stroke.c
View file @
68ce000d
...
...
@@ -65,16 +65,21 @@ static ULONG STDMETHODCALLTYPE d2d_stroke_style_Release(ID2D1StrokeStyle *iface)
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
{
ID2D1Factory_Release
(
style
->
factory
);
HeapFree
(
GetProcessHeap
(),
0
,
style
);
}
return
refcount
;
}
static
void
STDMETHODCALLTYPE
d2d_stroke_style_GetFactory
(
ID2D1StrokeStyle
*
iface
,
ID2D1Factory
**
factory
)
{
FIXME
(
"iface %p, factory %p stub!
\n
"
,
iface
,
factory
);
struct
d2d_stroke_style
*
style
=
impl_from_ID2D1StrokeStyle
(
iface
);
TRACE
(
"iface %p, factory %p.
\n
"
,
iface
,
factory
);
*
factory
=
NULL
;
ID2D1Factory_AddRef
(
*
factory
=
style
->
factory
)
;
}
static
D2D1_CAP_STYLE
STDMETHODCALLTYPE
d2d_stroke_style_GetStartCap
(
ID2D1StrokeStyle
*
iface
)
...
...
@@ -162,4 +167,5 @@ void d2d_stroke_style_init(struct d2d_stroke_style *style, ID2D1Factory *factory
style
->
ID2D1StrokeStyle_iface
.
lpVtbl
=
&
d2d_stroke_style_vtbl
;
style
->
refcount
=
1
;
ID2D1Factory_AddRef
(
style
->
factory
=
factory
);
}
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