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
063080f7
Commit
063080f7
authored
Mar 25, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_state_block_GetTextRenderingParams().
parent
f87b0ce4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
d2d1_private.h
dlls/d2d1/d2d1_private.h
+2
-0
state_block.c
dlls/d2d1/state_block.c
+15
-1
No files found.
dlls/d2d1/d2d1_private.h
View file @
063080f7
...
...
@@ -174,6 +174,8 @@ struct d2d_state_block
{
ID2D1DrawingStateBlock
ID2D1DrawingStateBlock_iface
;
LONG
refcount
;
IDWriteRenderingParams
*
text_rendering_params
;
};
void
d2d_state_block_init
(
struct
d2d_state_block
*
state_block
,
const
D2D1_DRAWING_STATE_DESCRIPTION
*
desc
,
...
...
dlls/d2d1/state_block.c
View file @
063080f7
...
...
@@ -65,7 +65,11 @@ static ULONG STDMETHODCALLTYPE d2d_state_block_Release(ID2D1DrawingStateBlock *i
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
{
if
(
state_block
->
text_rendering_params
)
IDWriteRenderingParams_Release
(
state_block
->
text_rendering_params
);
HeapFree
(
GetProcessHeap
(),
0
,
state_block
);
}
return
refcount
;
}
...
...
@@ -98,7 +102,12 @@ static void STDMETHODCALLTYPE d2d_state_block_SetTextRenderingParams(ID2D1Drawin
static
void
STDMETHODCALLTYPE
d2d_state_block_GetTextRenderingParams
(
ID2D1DrawingStateBlock
*
iface
,
IDWriteRenderingParams
**
text_rendering_params
)
{
FIXME
(
"iface %p, text_rendering_params %p stub!
\n
"
,
iface
,
text_rendering_params
);
struct
d2d_state_block
*
state_block
=
impl_from_ID2D1DrawingStateBlock
(
iface
);
TRACE
(
"iface %p, text_rendering_params %p.
\n
"
,
iface
,
text_rendering_params
);
if
((
*
text_rendering_params
=
state_block
->
text_rendering_params
))
IDWriteRenderingParams_AddRef
(
*
text_rendering_params
);
}
static
const
struct
ID2D1DrawingStateBlockVtbl
d2d_state_block_vtbl
=
...
...
@@ -120,4 +129,9 @@ void d2d_state_block_init(struct d2d_state_block *state_block, const D2D1_DRAWIN
state_block
->
ID2D1DrawingStateBlock_iface
.
lpVtbl
=
&
d2d_state_block_vtbl
;
state_block
->
refcount
=
1
;
if
(
text_rendering_params
)
{
state_block
->
text_rendering_params
=
text_rendering_params
;
IDWriteRenderingParams_AddRef
(
state_block
->
text_rendering_params
);
}
}
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