--- np2/wince/w32/compiler.h 2003/10/21 16:27:54 1.2 +++ np2/wince/w32/compiler.h 2003/11/29 00:36:00 1.5 @@ -3,6 +3,8 @@ #include #define BYTESEX_LITTLE +#define OSLANG_SJIS +#define OSLINEBREAK_CRLF typedef short SINT16; @@ -10,7 +12,22 @@ typedef unsigned short UINT16; typedef int SINT32; typedef unsigned int UINT32; -#define RGB16 UINT32 + +#if !defined(SIZE_VGA) +#define SIZE_QVGA +#define RGB16 UINT32 +#endif + +// for RISC test +#define REG8 UINT +#define REG16 UINT +#define REG32 UINT +#define LOW12(a) ((((UINT)(a)) << 20) >> 20) +#define LOW14(a) ((((UINT)(a)) << 18) >> 18) +#define LOW15(a) ((((UINT)(a)) << 17) >> 17) +#define LOW16(a) ((UINT16)(a)) +#define HIGH16(a) (((UINT32)(a)) >> 16) + #include "common.h" #include "milstr.h" @@ -19,17 +36,19 @@ typedef unsigned int UINT32; #include "lstarray.h" #include "trace.h" + #define GETTICK() GetTickCount() -#define GETRAND() rand() #define SPRINTF wsprintf -#define SIZE_QVGA - #define VERMOUTH_LIB #define SOUND_CRITICAL +#define SUPPORT_SJIS + #define SUPPORT_16BPP #define MEMOPTIMIZE 2 #define SOUNDRESERVE 100 +#define SCREEN_BPP 16 +