[PATCH 4/5] d2d1: Implement d2d_d3d_render_target_EndDraw().
Henri Verbeet
hverbeet at codeweavers.com
Wed Sep 3 00:48:22 CDT 2014
Tag1/tag2 are "error tags". You set them with SetTags(), and if a subsequent
drawing operation generates an error, EndDraw() will return the error code and
tags that were set when the error occurred.
---
dlls/d2d1/render_target.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/d2d1/render_target.c b/dlls/d2d1/render_target.c
index d6db977..3897a1c 100644
--- a/dlls/d2d1/render_target.c
+++ b/dlls/d2d1/render_target.c
@@ -440,9 +440,14 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_BeginDraw(ID2D1RenderTarget
static HRESULT STDMETHODCALLTYPE d2d_d3d_render_target_EndDraw(ID2D1RenderTarget *iface,
D2D1_TAG *tag1, D2D1_TAG *tag2)
{
- FIXME("iface %p, tag1 %p, tag2 %p stub!\n", iface, tag1, tag2);
+ TRACE("iface %p, tag1 %p, tag2 %p.\n", iface, tag1, tag2);
- return E_NOTIMPL;
+ if (tag1)
+ *tag1 = 0;
+ if (tag2)
+ *tag2 = 0;
+
+ return S_OK;
}
static D2D1_PIXEL_FORMAT STDMETHODCALLTYPE d2d_d3d_render_target_GetPixelFormat(ID2D1RenderTarget *iface)
--
1.7.10.4
More information about the wine-patches
mailing list