Stefan Dösinger : ddraw: Add MAKEFOURCC to ddraw.h.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Apr 8 13:12:34 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 2043b06aa4ed46cf0b16e0f6fa87083144b64cce
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=2043b06aa4ed46cf0b16e0f6fa87083144b64cce

Author: Stefan Dösinger <stefandoesinger at gmx.at>
Date:   Sat Apr  8 19:15:03 2006 +0200

ddraw: Add MAKEFOURCC to ddraw.h.

---

 include/ddraw.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/ddraw.h b/include/ddraw.h
index 370fb8f..b06a720 100644
--- a/include/ddraw.h
+++ b/include/ddraw.h
@@ -761,6 +761,10 @@ typedef struct _DDPIXELFORMAT {
     					/* 20: next structure */
 } DDPIXELFORMAT,*LPDDPIXELFORMAT;
 
+#define MAKEFOURCC(ch0, ch1, ch2, ch3)  \
+    ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) |  \
+    ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
+
 /* DDCAPS.dwFXCaps */
 #define DDFXCAPS_BLTALPHA               0x00000001
 #define DDFXCAPS_OVERLAYALPHA           0x00000004




More information about the wine-cvs mailing list