dwrite: Release drawing effect after trimming sign Draw().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-02-02 01:41:12 +03:00 committed by Alexandre Julliard
parent e94264e6bd
commit e7094551fe
1 changed files with 4 additions and 1 deletions

View File

@ -4467,11 +4467,14 @@ static HRESULT WINAPI dwritetrimmingsign_Draw(IDWriteInlineObject *iface, void *
{
struct dwrite_trimmingsign *This = impl_from_IDWriteInlineObject(iface);
DWRITE_TEXT_RANGE range = { 0, ~0u };
HRESULT hr;
TRACE("(%p)->(%p %p %.2f %.2f %d %d %p)\n", This, context, renderer, originX, originY, is_sideways, is_rtl, effect);
IDWriteTextLayout_SetDrawingEffect(This->layout, effect, range);
return IDWriteTextLayout_Draw(This->layout, context, renderer, originX, originY);
hr = IDWriteTextLayout_Draw(This->layout, context, renderer, originX, originY);
IDWriteTextLayout_SetDrawingEffect(This->layout, NULL, range);
return hr;
}
static HRESULT WINAPI dwritetrimmingsign_GetMetrics(IDWriteInlineObject *iface, DWRITE_INLINE_OBJECT_METRICS *ret)