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

Commit dc0eb7b

Browse files
committed
Align with SA2|SA3
1 parent 5079e7f commit dc0eb7b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/gba/defines.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ extern void (*INTR_VECTOR)(void);
6969
extern uint8_t EWRAM_START[EWRAM_SIZE];
7070
extern uint8_t IWRAM_START[IWRAM_SIZE];
7171
extern uint16_t PLTT[PLTT_SIZE/sizeof(uint16_t)];
72-
#define BG_PLTT (u8*)&PLTT[0]
73-
#define OBJ_PLTT (u8*)&PLTT[BG_PLTT_SIZE/sizeof(uint16_t)]
72+
#define BG_PLTT (u16*)&PLTT[0]
73+
#define OBJ_PLTT (u16*)&PLTT[BG_PLTT_SIZE/sizeof(uint16_t)]
7474
extern uint8_t OAM[OAM_SIZE];
7575

7676
#define BG_VRAM &VRAM[0]
@@ -97,8 +97,8 @@ extern uint8_t OAM[OAM_SIZE];
9797
#define IWRAM_START 0x03000000
9898

9999
#define PLTT 0x5000000
100-
#define BG_PLTT PLTT
101-
#define OBJ_PLTT (PLTT + BG_PLTT_SIZE)
100+
#define BG_PLTT ((u16 *)(PLTT))
101+
#define OBJ_PLTT ((u16 *)(PLTT + BG_PLTT_SIZE))
102102

103103
#define VRAM 0x6000000
104104

0 commit comments

Comments
 (0)