GBA Video: Fix IO cache size

This commit is contained in:
Vicki Pfau 2020-02-24 19:53:26 -08:00
parent 12ae8ba949
commit a47bc8455c
1 changed files with 2 additions and 2 deletions

View File

@ -139,9 +139,9 @@ struct GBAVideoSoftwareRenderer {
int16_t objOffsetY; int16_t objOffsetY;
uint32_t scanlineDirty[5]; uint32_t scanlineDirty[5];
uint16_t nextIo[REG_SOUND1CNT_LO]; uint16_t nextIo[REG_SOUND1CNT_LO >> 1];
struct ScanlineCache { struct ScanlineCache {
uint16_t io[REG_SOUND1CNT_LO]; uint16_t io[REG_SOUND1CNT_LO >> 1];
int32_t scale[2][2]; int32_t scale[2][2];
} cache[GBA_VIDEO_VERTICAL_PIXELS]; } cache[GBA_VIDEO_VERTICAL_PIXELS];
int nextY; int nextY;