GBA Video: Fix IO cache size
Vicki Pfau vi@endrift.com
Mon, 24 Feb 2020 19:53:26 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
M
include/mgba/internal/gba/renderers/video-software.h
→
include/mgba/internal/gba/renderers/video-software.h
@@ -139,9 +139,9 @@ int16_t objOffsetX;
int16_t objOffsetY; uint32_t scanlineDirty[5]; - uint16_t nextIo[REG_SOUND1CNT_LO]; + uint16_t nextIo[REG_SOUND1CNT_LO >> 1]; struct ScanlineCache { - uint16_t io[REG_SOUND1CNT_LO]; + uint16_t io[REG_SOUND1CNT_LO >> 1]; int32_t scale[2][2]; } cache[GBA_VIDEO_VERTICAL_PIXELS]; int nextY;