Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c1fc0084
Commit
c1fc0084
authored
Jul 31, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_state_block_GetFactory().
parent
7f416ff3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
d2d1_private.h
dlls/d2d1/d2d1_private.h
+3
-2
factory.c
dlls/d2d1/factory.c
+1
-1
state_block.c
dlls/d2d1/state_block.c
+8
-4
No files found.
dlls/d2d1/d2d1_private.h
View file @
c1fc0084
...
...
@@ -200,12 +200,13 @@ struct d2d_state_block
ID2D1DrawingStateBlock
ID2D1DrawingStateBlock_iface
;
LONG
refcount
;
ID2D1Factory
*
factory
;
D2D1_DRAWING_STATE_DESCRIPTION
drawing_state
;
IDWriteRenderingParams
*
text_rendering_params
;
};
void
d2d_state_block_init
(
struct
d2d_state_block
*
state_block
,
const
D2D1_DRAWING_STATE_DESCRIPTION
*
desc
,
IDWriteRenderingParams
*
text_rendering_params
)
DECLSPEC_HIDDEN
;
void
d2d_state_block_init
(
struct
d2d_state_block
*
state_block
,
ID2D1Factory
*
factory
,
const
D2D1_DRAWING_STATE_DESCRIPTION
*
desc
,
IDWriteRenderingParams
*
text_rendering_params
)
DECLSPEC_HIDDEN
;
struct
d2d_state_block
*
unsafe_impl_from_ID2D1DrawingStateBlock
(
ID2D1DrawingStateBlock
*
iface
)
DECLSPEC_HIDDEN
;
enum
d2d_geometry_state
...
...
dlls/d2d1/factory.c
View file @
c1fc0084
...
...
@@ -199,7 +199,7 @@ static HRESULT STDMETHODCALLTYPE d2d_factory_CreateDrawingStateBlock(ID2D1Factor
if
(
!
(
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
d2d_state_block_init
(
object
,
desc
,
text_rendering_params
);
d2d_state_block_init
(
object
,
iface
,
desc
,
text_rendering_params
);
TRACE
(
"Created state block %p.
\n
"
,
object
);
*
state_block
=
&
object
->
ID2D1DrawingStateBlock_iface
;
...
...
dlls/d2d1/state_block.c
View file @
c1fc0084
...
...
@@ -68,6 +68,7 @@ static ULONG STDMETHODCALLTYPE d2d_state_block_Release(ID2D1DrawingStateBlock *i
{
if
(
state_block
->
text_rendering_params
)
IDWriteRenderingParams_Release
(
state_block
->
text_rendering_params
);
ID2D1Factory_Release
(
state_block
->
factory
);
HeapFree
(
GetProcessHeap
(),
0
,
state_block
);
}
...
...
@@ -76,9 +77,11 @@ static ULONG STDMETHODCALLTYPE d2d_state_block_Release(ID2D1DrawingStateBlock *i
static
void
STDMETHODCALLTYPE
d2d_state_block_GetFactory
(
ID2D1DrawingStateBlock
*
iface
,
ID2D1Factory
**
factory
)
{
FIXME
(
"iface %p, factory %p stub!
\n
"
,
iface
,
factory
);
struct
d2d_state_block
*
state_block
=
impl_from_ID2D1DrawingStateBlock
(
iface
);
TRACE
(
"iface %p, factory %p.
\n
"
,
iface
,
factory
);
*
factory
=
NULL
;
ID2D1Factory_AddRef
(
*
factory
=
state_block
->
factory
)
;
}
static
void
STDMETHODCALLTYPE
d2d_state_block_GetDescription
(
ID2D1DrawingStateBlock
*
iface
,
...
...
@@ -138,8 +141,8 @@ static const struct ID2D1DrawingStateBlockVtbl d2d_state_block_vtbl =
d2d_state_block_GetTextRenderingParams
,
};
void
d2d_state_block_init
(
struct
d2d_state_block
*
state_block
,
const
D2D1_DRAWING_STATE_DESCRIPTION
*
desc
,
IDWriteRenderingParams
*
text_rendering_params
)
void
d2d_state_block_init
(
struct
d2d_state_block
*
state_block
,
ID2D1Factory
*
factory
,
const
D2D1_DRAWING_STATE_DESCRIPTION
*
desc
,
IDWriteRenderingParams
*
text_rendering_params
)
{
static
const
D2D1_MATRIX_3X2_F
identity
=
{
...
...
@@ -150,6 +153,7 @@ 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
;
ID2D1Factory_AddRef
(
state_block
->
factory
=
factory
);
if
(
desc
)
state_block
->
drawing_state
=
*
desc
;
else
...
...
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