Henri Verbeet : d2d1: Implement d2d_d3d_render_target_EndDraw().

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 3 15:09:21 CDT 2014


Module: wine
Branch: master
Commit: 53d0c20526014a61b56aa0f9b8c159d9477d7b4c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=53d0c20526014a61b56aa0f9b8c159d9477d7b4c

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Sep  3 07:48:22 2014 +0200

d2d1: Implement d2d_d3d_render_target_EndDraw().

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)




More information about the wine-cvs mailing list