[nostalgia/core/gba] Change sprite update iterator to 32 bit int
This commit is contained in:
parent
1df1e3809f
commit
c5326d72af
@ -32,8 +32,8 @@ void nostalgia_core_isr_vblank() {
|
|||||||
// copy g_spriteUpdates to allow it to use a register instead of reading
|
// copy g_spriteUpdates to allow it to use a register instead of reading
|
||||||
// from memory every iteration of the loop, needed because g_spriteUpdates
|
// from memory every iteration of the loop, needed because g_spriteUpdates
|
||||||
// is volatile
|
// is volatile
|
||||||
const auto updates = g_spriteUpdates;
|
const unsigned updates = g_spriteUpdates;
|
||||||
for (uint16_t i = 0; i < updates; ++i) {
|
for (unsigned i = 0; i < updates; ++i) {
|
||||||
const auto &oa = g_spriteBuffer[i];
|
const auto &oa = g_spriteBuffer[i];
|
||||||
MEM_OAM[oa.idx] = *ox::bit_cast<const uint64_t*>(&oa);
|
MEM_OAM[oa.idx] = *ox::bit_cast<const uint64_t*>(&oa);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user