[PATCH v4 1/6] include: Add defines for ID2D1VertexBuffer.

Ziqing Hui zhui at codeweavers.com
Sun Apr 24 23:42:27 CDT 2022


Signed-off-by: Ziqing Hui <zhui at codeweavers.com>
---

v4: Include the new header file to effect.c.

 dlls/d2d1/effect.c           |  1 +
 include/Makefile.in          |  1 +
 include/d2d1effectauthor.idl | 33 +++++++++++++++++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 include/d2d1effectauthor.idl

diff --git a/dlls/d2d1/effect.c b/dlls/d2d1/effect.c
index 601932b005b..350ac3c7bbf 100644
--- a/dlls/d2d1/effect.c
+++ b/dlls/d2d1/effect.c
@@ -17,6 +17,7 @@
  */
 
 #include "d2d1_private.h"
+#include "d2d1effectauthor.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(d2d);
 
diff --git a/include/Makefile.in b/include/Makefile.in
index dff2f341568..90d451ba5b1 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -107,6 +107,7 @@ SOURCES = \
 	d2d1effects.idl \
 	d2d1effects_1.idl \
 	d2d1effects_2.idl \
+	d2d1effectauthor.idl \
 	d2dbasetypes.h \
 	d2derr.h \
 	d3d.h \
diff --git a/include/d2d1effectauthor.idl b/include/d2d1effectauthor.idl
new file mode 100644
index 00000000000..407c6f91819
--- /dev/null
+++ b/include/d2d1effectauthor.idl
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2022 Ziqing Hui for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+ import "d2d1_1.idl";
+
+[
+    object,
+    uuid(9b8b1336-00a5-4668-92b7-ced5d8bf9b7b),
+    local,
+]
+interface ID2D1VertexBuffer : IUnknown
+{
+    HRESULT Map(
+        [out] BYTE **data,
+        [in] UINT32 size
+    );
+    HRESULT Unmap();
+};
-- 
2.25.1




More information about the wine-devel mailing list