|
|
| version 1.1.1.1, 2003/10/16 17:57:05 | version 1.6, 2003/12/08 00:55:30 |
|---|---|
| Line 32 enum { | Line 32 enum { |
| #endif | #endif |
| // ---- Optimize Macros | |
| #ifndef REG8 | |
| #define REG8 BYTE | |
| #endif | |
| #ifndef REG16 | |
| #define REG16 UINT16 | |
| #endif | |
| #ifndef LOW12 | |
| #define LOW12(a) ((a) & 0x0fff) | |
| #endif | |
| #ifndef LOW14 | |
| #define LOW14(a) ((a) & 0x3fff) | |
| #endif | |
| #ifndef LOW15 | |
| #define LOW15(a) ((a) & 0x7fff) | |
| #endif | |
| #ifndef LOW16 | |
| #define LOW16(a) ((UINT16)(a)) | |
| #endif | |
| #ifndef HIGH16 | |
| #define HIGH16(a) (((UINT32)(a)) >> 16) | |
| #endif | |
| #ifndef STRLITERAL | #ifndef STRLITERAL |
| #ifdef UNICODE | #ifdef UNICODE |
| #define STRLITERAL(string) _T(string) | #define STRLITERAL(string) _T(string) |
| Line 40 enum { | Line 65 enum { |
| #endif | #endif |
| #endif | #endif |
| #if !defined(RGB16) | |
| #define RGB16 UINT16 | |
| #endif | |
| #if !defined(RGB32) | #if !defined(RGB32) |
| #if defined(BYTESEX_LITTLE) | #if defined(BYTESEX_LITTLE) |
| typedef union { | typedef union { |
| struct { | struct { |
| BYTE b; | UINT8 b; |
| BYTE g; | UINT8 g; |
| BYTE r; | UINT8 r; |
| BYTE e; | UINT8 e; |
| } p; | } p; |
| UINT32 d; | UINT32 d; |
| } RGB32; | } RGB32; |
| #elif defined(BYTESEX_BIG) | #elif defined(BYTESEX_BIG) |
| typedef union { | typedef union { |
| struct { | struct { |
| BYTE e; | UINT8 e; |
| BYTE r; | UINT8 r; |
| BYTE g; | UINT8 g; |
| BYTE b; | UINT8 b; |
| } p; | } p; |
| UINT32 d; | UINT32 d; |
| } RGB32; | } RGB32; |