Correct berry fix graphics colors, more PLTT constant use (#1892)
This commit is contained in:
@@ -8,9 +8,9 @@ static const struct {
|
||||
const u16 *pltt;
|
||||
} sBerryFixGraphics[] = {
|
||||
{
|
||||
gBerryFixGameboy_Gfx,
|
||||
gBerryFixGameboy_Tilemap,
|
||||
gBerryFixGameboy_Pal
|
||||
gBerryFixGbaConnect_Gfx,
|
||||
gBerryFixGbaConnect_Tilemap,
|
||||
gBerryFixGbaConnect_Pal
|
||||
}, {
|
||||
gBerryFixGameboyLogo_Gfx,
|
||||
gBerryFixGameboyLogo_Tilemap,
|
||||
@@ -43,7 +43,7 @@ static void LoadBerryFixGraphics(u32 idx)
|
||||
REG_BLDCNT = 0;
|
||||
LZ77UnCompVram(sBerryFixGraphics[idx].gfx, (void *)BG_CHAR_ADDR(0));
|
||||
LZ77UnCompVram(sBerryFixGraphics[idx].tilemap, (void *)BG_SCREEN_ADDR(31));
|
||||
CpuCopy16(sBerryFixGraphics[idx].pltt, (void *)PLTT, 0x200);
|
||||
REG_BG0CNT = 0x1f00;
|
||||
CpuCopy16(sBerryFixGraphics[idx].pltt, (void *)BG_PLTT, BG_PLTT_SIZE);
|
||||
REG_BG0CNT = BGCNT_SCREENBASE(31);
|
||||
REG_DISPCNT = DISPCNT_BG0_ON;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user