|
5 | 5 | #include <stddef.h> |
6 | 6 | #include <stdint.h> // for uint16_t |
7 | 7 | #endif |
| 8 | +#include "color.h" |
8 | 9 |
|
9 | 10 | #define TRUE 1 |
10 | 11 | #define FALSE 0 |
|
13 | 14 | #define IWRAM_DATA __attribute__((section("iwram_data"))) |
14 | 15 | #define EWRAM_DATA __attribute__((section("ewram_data"))) |
15 | 16 | #else |
16 | | -#include "color.h" |
17 | 17 | #define IWRAM_DATA |
18 | 18 | #define EWRAM_DATA |
19 | 19 | #endif |
@@ -161,19 +161,6 @@ typedef uint16_t winreg_t; |
161 | 161 |
|
162 | 162 | #define TOTAL_OBJ_TILE_COUNT 1024 |
163 | 163 |
|
164 | | -#define RGB16(r, g, b) ((r) | ((g) << 5) | ((b) << 10)) |
165 | | -#define RGB16_REV(r, g, b) (((b) << 10) | ((g) << 5) | (r)) |
166 | | - |
167 | | -#define RGB_BLACK RGB16(0, 0, 0) |
168 | | -#define RGB_WHITE RGB16(31, 31, 31) |
169 | | -#define RGB_RED RGB16(31, 0, 0) |
170 | | -#define RGB_GREEN RGB16(0, 31, 0) |
171 | | -#define RGB_BLUE RGB16(0, 0, 31) |
172 | | -#define RGB_YELLOW RGB16(31, 31, 0) |
173 | | -#define RGB_MAGENTA RGB16(31, 0, 31) |
174 | | -#define RGB_CYAN RGB16(0, 31, 31) |
175 | | -#define RGB_WHITEALPHA (RGB_WHITE | 0x8000) |
176 | | - |
177 | 164 | #define SYSTEM_CLOCK (16 * 1024 * 1024) // System Clock |
178 | 165 |
|
179 | 166 | #endif // GUARD_GBA_DEFINES |
0 commit comments