Rev 41 | Rev 50 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 41 | Rev 44 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | #define MAX_PITCH_FOR_FLAT_ICONS 75.0f |
26 | #define MAX_PITCH_FOR_FLAT_ICONS 75.0f |
27 | #define ANIMATION_DURATION 1.0f |
27 | #define ANIMATION_DURATION 1.0f |
28 | #define WCHAR_SIZEOF(a) (sizeof (a) / sizeof (wchar_t)) |
28 | #define WCHAR_SIZEOF(a) (sizeof (a) / sizeof (wchar_t)) |
29 | #define LOCALIZE(a) LocalizedTexts_GetLocalizedTextFor (a) |
29 | #define LOCALIZE(a) LocalizedTexts_GetLocalizedTextFor (a) |
30 | #define IS_VALID_POSITION(pos) (((pos)[0] >= 0) && ((pos)[0] < 8) && ((pos)[1] >= 0) && ((pos)[1] < 8)) |
30 | #define IS_VALID_POSITION(pos) (((pos)[0] >= 0) && ((pos)[0] < 8) && ((pos)[1] >= 0) && ((pos)[1] < 8)) |
31 | #define FENSTARTUP_STANDARDCHESS L"rnbqkbnr/pppppppp/////PPPPPPPP/RNBQKBNR w KQkq - 0 1" |
31 | #define FENSTARTUP_STANDARDCHESS L"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" |
32 | #define PGNMOVENUMBER_TO_MOVEINDEX(move,color) (2 * ((move) - 1) + ((color) == COLOR_BLACK ? 1 : 0)) |
32 | #define PGNMOVENUMBER_TO_MOVEINDEX(move,color) (2 * ((move) - 1) + ((color) == COLOR_BLACK ? 1 : 0)) |
33 | #define MOVEINDEX_TO_PGNMOVENUMBER(moveindex) (1 + ((moveindex) - ((moveindex) % 2)) / 2) |
33 | #define MOVEINDEX_TO_PGNMOVENUMBER(moveindex) (1 + ((moveindex) - ((moveindex) % 2)) / 2) |
34 | 34 | ||
35 | 35 | ||
36 | // color handling macros |
36 | // color handling macros |