[PATCH 3/5] include: Add some missing DDLOCK constants.

Henri Verbeet hverbeet at codeweavers.com
Thu Jan 12 14:43:10 CST 2012


---
 include/ddraw.h |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/include/ddraw.h b/include/ddraw.h
index 5b1c621..5feddf4 100644
--- a/include/ddraw.h
+++ b/include/ddraw.h
@@ -1397,14 +1397,18 @@ DECLARE_INTERFACE_(IDirectDraw,IUnknown)
 
 
 /* flags for Lock() */
-#define DDLOCK_SURFACEMEMORYPTR	0x00000000
-#define DDLOCK_WAIT		0x00000001
-#define DDLOCK_EVENT		0x00000002
-#define DDLOCK_READONLY		0x00000010
-#define DDLOCK_WRITEONLY	0x00000020
-#define DDLOCK_NOSYSLOCK	0x00000800
-#define DDLOCK_NOOVERWRITE      0x00001000
-#define DDLOCK_DISCARDCONTENTS  0x00002000
+#define DDLOCK_SURFACEMEMORYPTR         __MSABI_LONG(0x00000000)
+#define DDLOCK_WAIT                     __MSABI_LONG(0x00000001)
+#define DDLOCK_EVENT                    __MSABI_LONG(0x00000002)
+#define DDLOCK_READONLY                 __MSABI_LONG(0x00000010)
+#define DDLOCK_WRITEONLY                __MSABI_LONG(0x00000020)
+#define DDLOCK_NOSYSLOCK                __MSABI_LONG(0x00000800)
+#define DDLOCK_NOOVERWRITE              __MSABI_LONG(0x00001000)
+#define DDLOCK_DISCARDCONTENTS          __MSABI_LONG(0x00002000)
+#define DDLOCK_OKTOSWAP                 __MSABI_LONG(0x00002000)
+#define DDLOCK_DONOTWAIT                __MSABI_LONG(0x00004000)
+#define DDLOCK_HASVOLUMETEXTUREBOXRECT  __MSABI_LONG(0x00008000)
+#define DDLOCK_NODIRTYUPDATE            __MSABI_LONG(0x00010000)
 
 
 /*****************************************************************************
-- 
1.7.3.4




More information about the wine-patches mailing list