Commit 59e641aa authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d2d1: Implement d2d_d3d_render_target_RestoreDrawingState().

parent 3f970564
......@@ -949,7 +949,17 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_SaveDrawingState(ID2D1Render
static void STDMETHODCALLTYPE d2d_d3d_render_target_RestoreDrawingState(ID2D1RenderTarget *iface,
ID2D1DrawingStateBlock *state_block)
{
FIXME("iface %p, state_block %p stub!\n", iface, state_block);
struct d2d_state_block *state_block_impl = unsafe_impl_from_ID2D1DrawingStateBlock(state_block);
struct d2d_d3d_render_target *render_target = impl_from_ID2D1RenderTarget(iface);
TRACE("iface %p, state_block %p.\n", iface, state_block);
render_target->drawing_state = state_block_impl->drawing_state;
if (state_block_impl->text_rendering_params)
IDWriteRenderingParams_AddRef(state_block_impl->text_rendering_params);
if (render_target->text_rendering_params)
IDWriteRenderingParams_Release(render_target->text_rendering_params);
render_target->text_rendering_params = state_block_impl->text_rendering_params;
}
static void STDMETHODCALLTYPE d2d_d3d_render_target_PushAxisAlignedClip(ID2D1RenderTarget *iface,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment