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
da47b214
Commit
da47b214
authored
Aug 04, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_bitmap_GetFactory().
parent
74e6f56a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
bitmap.c
dlls/d2d1/bitmap.c
+6
-2
d2d1_private.h
dlls/d2d1/d2d1_private.h
+1
-0
No files found.
dlls/d2d1/bitmap.c
View file @
da47b214
...
...
@@ -67,6 +67,7 @@ static ULONG STDMETHODCALLTYPE d2d_bitmap_Release(ID2D1Bitmap *iface)
if
(
!
refcount
)
{
ID3D10ShaderResourceView_Release
(
bitmap
->
view
);
ID2D1Factory_Release
(
bitmap
->
factory
);
HeapFree
(
GetProcessHeap
(),
0
,
bitmap
);
}
...
...
@@ -75,9 +76,11 @@ static ULONG STDMETHODCALLTYPE d2d_bitmap_Release(ID2D1Bitmap *iface)
static
void
STDMETHODCALLTYPE
d2d_bitmap_GetFactory
(
ID2D1Bitmap
*
iface
,
ID2D1Factory
**
factory
)
{
FIXME
(
"iface %p, factory %p stub!
\n
"
,
iface
,
factory
);
struct
d2d_bitmap
*
bitmap
=
impl_from_ID2D1Bitmap
(
iface
);
TRACE
(
"iface %p, factory %p.
\n
"
,
iface
,
factory
);
*
factory
=
NULL
;
ID2D1Factory_AddRef
(
*
factory
=
bitmap
->
factory
)
;
}
static
D2D1_SIZE_F
*
STDMETHODCALLTYPE
d2d_bitmap_GetSize
(
ID2D1Bitmap
*
iface
,
D2D1_SIZE_F
*
size
)
...
...
@@ -212,6 +215,7 @@ HRESULT d2d_bitmap_init(struct d2d_bitmap *bitmap, struct d2d_d3d_render_target
bitmap
->
ID2D1Bitmap_iface
.
lpVtbl
=
&
d2d_bitmap_vtbl
;
bitmap
->
refcount
=
1
;
ID2D1Factory_AddRef
(
bitmap
->
factory
=
render_target
->
factory
);
texture_desc
.
Width
=
size
.
width
;
texture_desc
.
Height
=
size
.
height
;
...
...
dlls/d2d1/d2d1_private.h
View file @
da47b214
...
...
@@ -188,6 +188,7 @@ struct d2d_bitmap
ID2D1Bitmap
ID2D1Bitmap_iface
;
LONG
refcount
;
ID2D1Factory
*
factory
;
ID3D10ShaderResourceView
*
view
;
D2D1_SIZE_U
pixel_size
;
D2D1_PIXEL_FORMAT
format
;
...
...
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