[nostalgia/core/gba] Fix typo

This commit is contained in:
Gary Talent 2019-11-26 23:22:16 -06:00
parent 1d600186cd
commit 69666a0b31
2 changed files with 3 additions and 3 deletions

View File

@ -39,8 +39,8 @@
/////////////////////////////////////////////////////////////////
// Memory Addresses
#define MEM_PALLETE_BG ((uint16_t*) 0x05000000)
#define MEM_PALLETE_SPRITE ((uint16_t*) 0x05000200)
#define MEM_PALETTE_BG ((uint16_t*) 0x05000000)
#define MEM_PALETTE_SPRITE ((uint16_t*) 0x05000200)
typedef uint16_t BgMapTile[1024];
#define MEM_BG_MAP ((BgMapTile*) 0x06000000)

View File

@ -130,7 +130,7 @@ ox::Error loadTileSheet(Context *ctx,
auto [ts, tserr] = ctx->rom->read(tilesheetAddr);
oxReturnError(tserr);
GbaTileMapTarget target;
target.pal.palette = &MEM_PALLETE_BG[section];
target.pal.palette = &MEM_PALETTE_BG[section];
target.bgCtl = &bgCtl(section);
target.tileMap = &TILE_ADDR[section * 512];
oxReturnError(ox::readMC(ts, tsStat.size, &target));