--- np2/wince/wce/compiler.h 2003/10/25 13:52:24 1.1 +++ np2/wince/wce/compiler.h 2003/11/29 00:36:00 1.4 @@ -3,12 +3,13 @@ #include #define BYTESEX_LITTLE +#define OSLANG_SJIS +#define OSLINEBREAK_CRLF typedef short SINT16; typedef int SINT32; -#define RGB16 UINT32 #ifndef ZeroMemory #define ZeroMemory(a, b) memset((a), 0 , (b)) @@ -20,6 +21,23 @@ typedef int SINT32; #define FillMemory(a, b, c) memset((a), (c), (b)) #endif + +#if !defined(SIZE_VGA) +#define SIZE_QVGA +#define RGB16 UINT32 +#endif + +// for ARM optimize +#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" #include "_memory.h" @@ -27,11 +45,10 @@ typedef int SINT32; #include "lstarray.h" #include "trace.h" + #define GETTICK() GetTickCount() -#define GETRAND() rand() #define SPRINTF sprintf -#define SIZE_QVGA #if defined(WIN32_PLATFORM_PSPC) #define MENU_TASKMINIMIZE #endif @@ -39,6 +56,16 @@ typedef int SINT32; #define VERMOUTH_LIB #define SOUND_CRITICAL +#define SUPPORT_SJIS + #define SUPPORT_16BPP #define MEMOPTIMIZE 2 +#define SOUNDRESERVE 100 + +#define SCREEN_BPP 16 + +#if defined(ARM) +#define OPNGENARM +#endif +