From 29af90be0c42f73ac57caa0f712a2557981ac00a Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 25 Mar 2015 10:05:29 +0100 Subject: [PATCH] d2d1: Implement d2d_state_block_SetTextRenderingParams(). --- dlls/d2d1/state_block.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dlls/d2d1/state_block.c b/dlls/d2d1/state_block.c index 62458fbf29d..978c7dfa47d 100644 --- a/dlls/d2d1/state_block.c +++ b/dlls/d2d1/state_block.c @@ -96,7 +96,15 @@ static void STDMETHODCALLTYPE d2d_state_block_SetDescription(ID2D1DrawingStateBl static void STDMETHODCALLTYPE d2d_state_block_SetTextRenderingParams(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) + IDWriteRenderingParams_AddRef(text_rendering_params); + if (state_block->text_rendering_params) + IDWriteRenderingParams_Release(state_block->text_rendering_params); + state_block->text_rendering_params = text_rendering_params; } static void STDMETHODCALLTYPE d2d_state_block_GetTextRenderingParams(ID2D1DrawingStateBlock *iface,