• R/O
  • SSH

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Mercurial Patch Queue for Windows System Libraries


File Info

修訂. e77cb33f187d5ad50a65a3d89ee9485d926347bc
大小 4,134 bytes
時間 2019-04-02 03:25:55
作者 Keith Marshall
Log Message

Handle w32api directory rename for 6.0-exp bookmark.

Content

# HG changeset patch
# Parent 17feab1c57cc0e61efb39475bd36f526ed0c7b3a
Add stub for missing <ddraw.h> header file.

diff --git a/wslapi/include/ddraw.h b/wslapi/include/ddraw.h
new file mode 100644
--- /dev/null
+++ b/wslapi/include/ddraw.h
@@ -0,0 +1,113 @@
+/*
+ * ddraw.h
+ *
+ * FIXME: This header file is a stub; someone needs to flesh it out,
+ * to actually implement the declarations for the DirectDraw API.
+ *
+ * $Id$
+ *
+ * FIXME: Whoever does eventually implement this API, please assert
+ * your moral right to be identified as principal author, in place of
+ * my temporary assertion here, and delete this comment.  Please DO
+ * NOT change the following copyright assignment.
+ *
+ * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
+ * Copyright (C) 2017, MinGW.org Project
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+#ifndef _DDRAW_H
+#define _DDRAW_H
+#pragma GCC system_header
+
+#include <windef.h>
+
+_BEGIN_C_DECLS
+
+typedef struct _DDCAPS DDCAPS, *LPDDCAPS;
+typedef struct _DDSURFACEDESC DDSURFACEDESC, *LPDDSURFACEDESC;
+
+typedef struct _DDSCAPS2
+{ DWORD 			dwCaps;
+  DWORD 			dwCaps2;
+  DWORD 			dwCaps3;
+  _ANONYMOUS_UNION union
+  { DWORD			  dwCaps4;
+    DWORD			  dwVolumeDepth;
+  };
+} DDSCAPS2, *LPDDSCAPS2;
+
+
+typedef struct _DDPIXELFORMAT
+{ DWORD 			dwSize;
+  DWORD 			dwFlags;
+  DWORD 			dwFourCC;
+  _ANONYMOUS_UNION union
+  { DWORD			  dwRGBBitCount;
+    DWORD			  dwYUVBitCount;
+    DWORD			  dwZBufferBitDepth;
+    DWORD			  dwAlphaBitDepth;
+    DWORD			  dwLuminanceBitCount;
+    DWORD			  dwBumpBitCount;
+    DWORD			  dwPrivateFormatBitCount;
+  };
+  _ANONYMOUS_UNION union
+  { DWORD			  dwRBitMask;
+    DWORD			  dwYBitMask;
+    DWORD			  dwStencilBitDepth;
+    DWORD			  dwLuminanceBitMask;
+    DWORD			  dwBumpDuBitMask;
+    DWORD			  dwOperations;
+  };
+  _ANONYMOUS_UNION union
+  { DWORD			  dwGBitMask;
+    DWORD			  dwUBitMask;
+    DWORD			  dwZBitMask;
+    DWORD			  dwBumpDvBitMask;
+    struct
+    { WORD			    wFlipMSTypes;
+      WORD			    wBltMSTypes;
+    }				  MultiSampleCaps;
+  };
+  _ANONYMOUS_UNION union
+  { DWORD			  dwBBitMask;
+    DWORD			  dwVBitMask;
+    DWORD			  dwStencilBitMask;
+    DWORD			  dwBumpLuminanceBitMask;
+  };
+  _ANONYMOUS_UNION union
+  { DWORD			  dwRGBAlphaBitMask;
+    DWORD			  dwYUVAlphaBitMask;
+    DWORD			  dwLuminanceAlphaBitMask;
+    DWORD			  dwRGBZBitMask;
+    DWORD			  dwYUVZBitMask;
+  };
+} DDPIXELFORMAT, *LPDDPIXELFORMAT;
+
+typedef struct IDirectDraw	*LPDIRECTDRAW;
+typedef struct IDirectDraw2	*LPDIRECTDRAW2;
+typedef struct IDirectDraw4	*LPDIRECTDRAW4;
+typedef struct IDirectDraw7	*LPDIRECTDRAW7;
+
+_END_C_DECLS
+
+#endif	/* !_DDRAW_H: $RCSfile$: end of file */
diff --git a/wslapi/tests/headers.at b/wslapi/tests/headers.at
--- a/wslapi/tests/headers.at
+++ b/wslapi/tests/headers.at
@@ -61,10 +61,11 @@ cplext.h dnl
 cpl.h dnl
 custcntl.h dnl
 dbt.h dnl
 dde.h dnl
 ddeml.h dnl
+ddraw.h dnl
 devguid.h dnl
 dhcpcsdk.h dnl
 dlgs.h dnl
 docobj.h dnl
 dsadmin.h dnl