include: Change long to LONG in d3dtypes.h for Win64 compatibility.

Michael Stefaniuc mstefani at redhat.de
Sun Jan 4 04:29:02 CST 2009


---
 include/d3dtypes.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/d3dtypes.h b/include/d3dtypes.h
index f0be963..241eb7c 100644
--- a/include/d3dtypes.h
+++ b/include/d3dtypes.h
@@ -55,10 +55,10 @@ typedef LONG D3DFIXED;
 #define RGBA_MAKE(r, g, b, a)   ((D3DCOLOR) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)))
 
 #define D3DRGB(r, g, b) \
-    (0xff000000L | ( ((long)((r) * 255)) << 16) | (((long)((g) * 255)) << 8) | (long)((b) * 255))
+    (0xff000000L | ( ((LONG)((r) * 255)) << 16) | (((LONG)((g) * 255)) << 8) | (LONG)((b) * 255))
 #define D3DRGBA(r, g, b, a) \
-    (   (((long)((a) * 255)) << 24) | (((long)((r) * 255)) << 16) \
-    |   (((long)((g) * 255)) << 8) | (long)((b) * 255) \
+    (   (((LONG)((a) * 255)) << 24) | (((LONG)((r) * 255)) << 16) \
+    |   (((LONG)((g) * 255)) << 8) | (LONG)((b) * 255) \
     )
 
 #define RGB_GETRED(rgb)         (((rgb) >> 16) & 0xff)
-- 
1.6.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090104/8754cbcc/attachment.pgp 


More information about the wine-patches mailing list