include: Remove 'l' modifier from numeric constants in d3d9*.h
Michael Stefaniuc
mstefani at redhat.de
Tue Oct 25 17:32:03 CDT 2011
---
include/d3d9.h | 26 ++++++++--------
include/d3d9types.h | 84 +++++++++++++++++++++++++-------------------------
2 files changed, 55 insertions(+), 55 deletions(-)
diff --git a/include/d3d9.h b/include/d3d9.h
index 1311ac0..a94aba0 100644
--- a/include/d3d9.h
+++ b/include/d3d9.h
@@ -39,19 +39,19 @@
/*****************************************************************************
* Behavior Flags for IDirect3D8::CreateDevice
*/
-#define D3DCREATE_FPU_PRESERVE 0x00000002L
-#define D3DCREATE_MULTITHREADED 0x00000004L
-#define D3DCREATE_PUREDEVICE 0x00000010L
-#define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L
-#define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L
-#define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L
-#define D3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100L
-#define D3DCREATE_ADAPTERGROUP_DEVICE 0x00000200L
+#define D3DCREATE_FPU_PRESERVE 0x00000002
+#define D3DCREATE_MULTITHREADED 0x00000004
+#define D3DCREATE_PUREDEVICE 0x00000010
+#define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020
+#define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040
+#define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080
+#define D3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100
+#define D3DCREATE_ADAPTERGROUP_DEVICE 0x00000200
/*****************************************************************************
* Flags for SetPrivateData
*/
-#define D3DSPD_IUNKNOWN 0x00000001L
+#define D3DSPD_IUNKNOWN 0x00000001
/*****************************************************************************
@@ -59,10 +59,10 @@
*/
#define D3D_SDK_VERSION 32
#define D3DADAPTER_DEFAULT 0
-#define D3DENUM_NO_WHQL_LEVEL 0x00000002L
-#define D3DPRESENT_BACK_BUFFERS_MAX 3L
-#define D3DSGR_NO_CALIBRATION 0x00000000L
-#define D3DSGR_CALIBRATE 0x00000001L
+#define D3DENUM_NO_WHQL_LEVEL 0x00000002
+#define D3DPRESENT_BACK_BUFFERS_MAX 3
+#define D3DSGR_NO_CALIBRATION 0x00000000
+#define D3DSGR_CALIBRATE 0x00000001
#define _FACD3D 0x876
#define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code )
diff --git a/include/d3d9types.h b/include/d3d9types.h
index bbb8fbd..3f23c70 100644
--- a/include/d3d9types.h
+++ b/include/d3d9types.h
@@ -24,9 +24,9 @@
/*****************************************************************************
* Direct 3D v9 #defines
*/
-#define D3DCLEAR_TARGET 0x00000001L
-#define D3DCLEAR_ZBUFFER 0x00000002L
-#define D3DCLEAR_STENCIL 0x00000004L
+#define D3DCLEAR_TARGET 0x00000001
+#define D3DCLEAR_ZBUFFER 0x00000002
+#define D3DCLEAR_STENCIL 0x00000004
#define D3DCLIPPLANE0 (1 << 0)
#define D3DCLIPPLANE1 (1 << 1)
@@ -42,19 +42,19 @@
#define D3DCOLOR_XYUV(y,u,v) D3DCOLOR_ARGB(0xFF,y,u,v)
#define D3DCOLOR_AYUV(a,y,u,v) D3DCOLOR_ARGB(a,y,u,v)
-#define D3DCS_LEFT 0x001L
-#define D3DCS_RIGHT 0x002L
-#define D3DCS_TOP 0x004L
-#define D3DCS_BOTTOM 0x008L
-#define D3DCS_FRONT 0x010L
-#define D3DCS_BACK 0x020L
-#define D3DCS_PLANE0 0x040L
-#define D3DCS_PLANE1 0x080L
-#define D3DCS_PLANE2 0x100L
-#define D3DCS_PLANE3 0x200L
-#define D3DCS_PLANE4 0x400L
-#define D3DCS_PLANE5 0x800L
-#define D3DCS_ALL 0xFFFL
+#define D3DCS_LEFT 0x001
+#define D3DCS_RIGHT 0x002
+#define D3DCS_TOP 0x004
+#define D3DCS_BOTTOM 0x008
+#define D3DCS_FRONT 0x010
+#define D3DCS_BACK 0x020
+#define D3DCS_PLANE0 0x040
+#define D3DCS_PLANE1 0x080
+#define D3DCS_PLANE2 0x100
+#define D3DCS_PLANE3 0x200
+#define D3DCS_PLANE4 0x400
+#define D3DCS_PLANE5 0x800
+#define D3DCS_ALL 0xFFF
#define D3DFVF_TEXTUREFORMAT1 3
#define D3DFVF_TEXTUREFORMAT2 0
@@ -81,7 +81,7 @@
#define D3DCLIPPLANE5 (1 << 5)
-#define D3DRENDERSTATE_WRAPBIAS 128UL
+#define D3DRENDERSTATE_WRAPBIAS 128U
/* MSDN has this in d3d9caps.h, but it should be here */
#define D3DTSS_TCI_PASSTHRU 0x00000
@@ -97,25 +97,25 @@
#define D3DTS_WORLD3 D3DTS_WORLDMATRIX(3)
#define D3DTS_WORLDMATRIX(index) (D3DTRANSFORMSTATETYPE)(index + 256)
-#define D3DUSAGE_RENDERTARGET 0x00000001L
-#define D3DUSAGE_DEPTHSTENCIL 0x00000002L
-#define D3DUSAGE_WRITEONLY 0x00000008L
-#define D3DUSAGE_SOFTWAREPROCESSING 0x00000010L
-#define D3DUSAGE_DONOTCLIP 0x00000020L
-#define D3DUSAGE_POINTS 0x00000040L
-#define D3DUSAGE_RTPATCHES 0x00000080L
-#define D3DUSAGE_NPATCHES 0x00000100L
-#define D3DUSAGE_DYNAMIC 0x00000200L
-#define D3DUSAGE_AUTOGENMIPMAP 0x00000400L
-#define D3DUSAGE_DMAP 0x00004000L
-
-#define D3DUSAGE_QUERY_FILTER 0x00020000L
-#define D3DUSAGE_QUERY_LEGACYBUMPMAP 0x00008000L
-#define D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING 0x00080000L
-#define D3DUSAGE_QUERY_SRGBREAD 0x00010000L
-#define D3DUSAGE_QUERY_SRGBWRITE 0x00040000L
-#define D3DUSAGE_QUERY_VERTEXTEXTURE 0x00100000L
-#define D3DUSAGE_QUERY_WRAPANDMIP 0x00200000L
+#define D3DUSAGE_RENDERTARGET 0x00000001
+#define D3DUSAGE_DEPTHSTENCIL 0x00000002
+#define D3DUSAGE_WRITEONLY 0x00000008
+#define D3DUSAGE_SOFTWAREPROCESSING 0x00000010
+#define D3DUSAGE_DONOTCLIP 0x00000020
+#define D3DUSAGE_POINTS 0x00000040
+#define D3DUSAGE_RTPATCHES 0x00000080
+#define D3DUSAGE_NPATCHES 0x00000100
+#define D3DUSAGE_DYNAMIC 0x00000200
+#define D3DUSAGE_AUTOGENMIPMAP 0x00000400
+#define D3DUSAGE_DMAP 0x00004000
+
+#define D3DUSAGE_QUERY_FILTER 0x00020000
+#define D3DUSAGE_QUERY_LEGACYBUMPMAP 0x00008000
+#define D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING 0x00080000
+#define D3DUSAGE_QUERY_SRGBREAD 0x00010000
+#define D3DUSAGE_QUERY_SRGBWRITE 0x00040000
+#define D3DUSAGE_QUERY_VERTEXTEXTURE 0x00100000
+#define D3DUSAGE_QUERY_WRAPANDMIP 0x00200000
#define D3DWRAP_U 1
#define D3DWRAP_V 2
@@ -167,10 +167,10 @@
#define D3DTA_COMPLEMENT 0x00000010
#define D3DTA_ALPHAREPLICATE 0x00000020
-#define D3DCOLORWRITEENABLE_RED (1L<<0)
-#define D3DCOLORWRITEENABLE_GREEN (1L<<1)
-#define D3DCOLORWRITEENABLE_BLUE (1L<<2)
-#define D3DCOLORWRITEENABLE_ALPHA (1L<<3)
+#define D3DCOLORWRITEENABLE_RED (1<<0)
+#define D3DCOLORWRITEENABLE_GREEN (1<<1)
+#define D3DCOLORWRITEENABLE_BLUE (1<<2)
+#define D3DCOLORWRITEENABLE_ALPHA (1<<3)
#define D3DPV_DONOTCOPYDATA (1 << 0)
@@ -206,7 +206,7 @@
#define D3DPRESENTFLAG_NOAUTOROTATE 0x00000020 /* d3d9ex, ignore display rotation */
#define D3DPRESENTFLAG_UNPRUNEDMODE 0x00000040 /* d3d9ex, specify invalid display modes */
-#define D3DPRESENT_BACK_BUFFERS_MAX 3L
+#define D3DPRESENT_BACK_BUFFERS_MAX 3
#define D3DPRESENT_RATE_DEFAULT 0x00000000
/****************************
@@ -643,7 +643,7 @@ typedef enum _D3DBACKBUFFER_TYPE {
D3DBACKBUFFER_TYPE_FORCE_DWORD = 0x7fffffff
} D3DBACKBUFFER_TYPE;
-#define D3DPRESENT_BACK_BUFFER_MAX 3L
+#define D3DPRESENT_BACK_BUFFER_MAX 3
typedef enum _D3DBASISTYPE {
D3DBASIS_BEZIER = 0,
--
1.7.6.4
More information about the wine-patches
mailing list