d3d9: Make D3DFVF_TEXTUREFORMAT4 and friends unsigned.

Gerald Pfeifer gerald at pfeifer.com
Tue Oct 27 06:07:00 CDT 2015


This is one I (nearly) missed.  With this one, no more warnings
about potential shift overflows.

Gerald



Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
 include/d3d9types.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/d3d9types.h b/include/d3d9types.h
index e037205..2e6a5ae 100644
--- a/include/d3d9types.h
+++ b/include/d3d9types.h
@@ -60,10 +60,10 @@
 #define D3DCS_PLANE5                 __MSABI_LONG(0x800)
 #define D3DCS_ALL                    __MSABI_LONG(0xFFF)
 
-#define D3DFVF_TEXTUREFORMAT1 3
-#define D3DFVF_TEXTUREFORMAT2 0
-#define D3DFVF_TEXTUREFORMAT3 1
-#define D3DFVF_TEXTUREFORMAT4 2
+#define D3DFVF_TEXTUREFORMAT1 3u
+#define D3DFVF_TEXTUREFORMAT2 0u
+#define D3DFVF_TEXTUREFORMAT3 1u
+#define D3DFVF_TEXTUREFORMAT4 2u
 #define D3DFVF_TEXCOORDSIZE1(CoordIndex) (D3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16))
 #define D3DFVF_TEXCOORDSIZE2(CoordIndex) (D3DFVF_TEXTUREFORMAT2)
 #define D3DFVF_TEXCOORDSIZE3(CoordIndex) (D3DFVF_TEXTUREFORMAT3 << (CoordIndex*2 + 16))
-- 
2.6.2



More information about the wine-patches mailing list