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
d742887b
Commit
d742887b
authored
Jul 29, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_bitmap_brush_SetBitmap().
parent
a2f41ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
brush.c
dlls/d2d1/brush.c
+13
-2
No files found.
dlls/d2d1/brush.c
View file @
d742887b
...
...
@@ -501,6 +501,8 @@ static ULONG STDMETHODCALLTYPE d2d_bitmap_brush_Release(ID2D1BitmapBrush *iface)
{
if
(
brush
->
u
.
bitmap
.
sampler_state
)
ID3D10SamplerState_Release
(
brush
->
u
.
bitmap
.
sampler_state
);
if
(
brush
->
u
.
bitmap
.
bitmap
)
ID2D1Bitmap_Release
(
&
brush
->
u
.
bitmap
.
bitmap
->
ID2D1Bitmap_iface
);
HeapFree
(
GetProcessHeap
(),
0
,
brush
);
}
...
...
@@ -598,7 +600,15 @@ static void STDMETHODCALLTYPE d2d_bitmap_brush_SetInterpolationMode(ID2D1BitmapB
static
void
STDMETHODCALLTYPE
d2d_bitmap_brush_SetBitmap
(
ID2D1BitmapBrush
*
iface
,
ID2D1Bitmap
*
bitmap
)
{
FIXME
(
"iface %p, bitmap %p stub!
\n
"
,
iface
,
bitmap
);
struct
d2d_brush
*
brush
=
impl_from_ID2D1BitmapBrush
(
iface
);
TRACE
(
"iface %p, bitmap %p.
\n
"
,
iface
,
bitmap
);
if
(
bitmap
)
ID2D1Bitmap_AddRef
(
bitmap
);
if
(
brush
->
u
.
bitmap
.
bitmap
)
ID2D1Bitmap_Release
(
&
brush
->
u
.
bitmap
.
bitmap
->
ID2D1Bitmap_iface
);
brush
->
u
.
bitmap
.
bitmap
=
unsafe_impl_from_ID2D1Bitmap
(
bitmap
);
}
static
D2D1_EXTEND_MODE
STDMETHODCALLTYPE
d2d_bitmap_brush_GetExtendModeX
(
ID2D1BitmapBrush
*
iface
)
...
...
@@ -666,7 +676,8 @@ HRESULT d2d_bitmap_brush_init(struct d2d_brush *brush, struct d2d_d3d_render_tar
d2d_brush_init
(
brush
,
&
render_target
->
ID2D1RenderTarget_iface
,
D2D_BRUSH_TYPE_BITMAP
,
brush_desc
,
(
ID2D1BrushVtbl
*
)
&
d2d_bitmap_brush_vtbl
);
brush
->
u
.
bitmap
.
bitmap
=
unsafe_impl_from_ID2D1Bitmap
(
bitmap
);
if
((
brush
->
u
.
bitmap
.
bitmap
=
unsafe_impl_from_ID2D1Bitmap
(
bitmap
)))
ID2D1Bitmap_AddRef
(
&
brush
->
u
.
bitmap
.
bitmap
->
ID2D1Bitmap_iface
);
if
(
bitmap_brush_desc
)
{
brush
->
u
.
bitmap
.
extend_mode_x
=
bitmap_brush_desc
->
extendModeX
;
...
...
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