[nostalgia/core] Fix incorrect bit_cast uses
This commit is contained in:
@@ -177,7 +177,7 @@ ox::Error loadBgTileSheet(Context *ctx,
|
||||
GbaTileMapTarget target;
|
||||
target.pal.palette = &MEM_BG_PALETTE[section];
|
||||
target.bgCtl = &bgCtl(section);
|
||||
target.tileMap = &ox::bit_cast<uint16_t*>(MEM_BG_TILES)[section * 512];
|
||||
target.tileMap = &reinterpret_cast<uint16_t*>(MEM_BG_TILES)[section * 512];
|
||||
oxReturnError(ox::readMC(ts, tsStat.size, &target));
|
||||
// load external palette if available
|
||||
if (paletteAddr) {
|
||||
@@ -198,7 +198,7 @@ ox::Error loadSpriteTileSheet(Context *ctx,
|
||||
target.pal.palette = &MEM_SPRITE_PALETTE[section];
|
||||
// Is this needed? Should this be written to an equivalent sprite value?
|
||||
// target.bgCtl = &bgCtl(section);
|
||||
target.tileMap = &ox::bit_cast<uint16_t*>(MEM_SPRITE_TILES)[section * 512];
|
||||
target.tileMap = &reinterpret_cast<uint16_t*>(MEM_SPRITE_TILES)[section * 512];
|
||||
oxReturnError(ox::readMC(ts, tsStat.size, &target));
|
||||
// load external palette if available
|
||||
if (paletteAddr) {
|
||||
|
||||
Reference in New Issue
Block a user