Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 52bb392

Browse files
committed
Fix build
1 parent aafedee commit 52bb392

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

include/color.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef GUARD_COLOR_H
22
#define GUARD_COLOR_H
33

4-
#if PLATFORM_GBA || (RENDERER == RENDERER_SOFTWARE)
4+
// TODO: Full RGB in SA1
5+
#if PLATFORM_GBA || (GAME == GAME_SA1) || (RENDERER == RENDERER_SOFTWARE)
56
// ABGR_1555
67
typedef uint16_t ColorRaw;
78
typedef union Color {

src/platform/shared/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ALIGNED(256) uint8_t EWRAM_START[EWRAM_SIZE] = { 0 };
55
ALIGNED(256) uint8_t IWRAM_START[IWRAM_SIZE] = { 0 };
66
// TODO: REG_BASE needs to be u8, because of the address macro definitions
77
ALIGNED(256) uint8_t REG_BASE[IO_SIZE] = { 0 };
8-
ALIGNED(256) uint16_t PLTT[PLTT_SIZE / sizeof(uint16_t)] = { 0 };
8+
ALIGNED(256) ColorRaw PLTT[32 * PALETTE_LEN_4BPP] = { 0 };
99
ALIGNED(256) uint8_t VRAM[VRAM_SIZE] = { 0 };
1010
ALIGNED(256) uint8_t OAM[OAM_SIZE] = { 0 };
1111
ALIGNED(256) uint8_t FLASH_BASE[FLASH_ROM_SIZE_1M * SECTORS_PER_BANK] = { 0 };

0 commit comments

Comments
 (0)