[nostalgia/core/gba] Fix typo
This commit is contained in:
parent
1d600186cd
commit
69666a0b31
@ -39,8 +39,8 @@
|
|||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
// Memory Addresses
|
// Memory Addresses
|
||||||
|
|
||||||
#define MEM_PALLETE_BG ((uint16_t*) 0x05000000)
|
#define MEM_PALETTE_BG ((uint16_t*) 0x05000000)
|
||||||
#define MEM_PALLETE_SPRITE ((uint16_t*) 0x05000200)
|
#define MEM_PALETTE_SPRITE ((uint16_t*) 0x05000200)
|
||||||
|
|
||||||
typedef uint16_t BgMapTile[1024];
|
typedef uint16_t BgMapTile[1024];
|
||||||
#define MEM_BG_MAP ((BgMapTile*) 0x06000000)
|
#define MEM_BG_MAP ((BgMapTile*) 0x06000000)
|
||||||
|
@ -130,7 +130,7 @@ ox::Error loadTileSheet(Context *ctx,
|
|||||||
auto [ts, tserr] = ctx->rom->read(tilesheetAddr);
|
auto [ts, tserr] = ctx->rom->read(tilesheetAddr);
|
||||||
oxReturnError(tserr);
|
oxReturnError(tserr);
|
||||||
GbaTileMapTarget target;
|
GbaTileMapTarget target;
|
||||||
target.pal.palette = &MEM_PALLETE_BG[section];
|
target.pal.palette = &MEM_PALETTE_BG[section];
|
||||||
target.bgCtl = &bgCtl(section);
|
target.bgCtl = &bgCtl(section);
|
||||||
target.tileMap = &TILE_ADDR[section * 512];
|
target.tileMap = &TILE_ADDR[section * 512];
|
||||||
oxReturnError(ox::readMC(ts, tsStat.size, &target));
|
oxReturnError(ox::readMC(ts, tsStat.size, &target));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user