From a47bc8455c826a6618089207e96864f78e461c96 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 24 Feb 2020 19:53:26 -0800 Subject: [PATCH] GBA Video: Fix IO cache size --- include/mgba/internal/gba/renderers/video-software.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mgba/internal/gba/renderers/video-software.h b/include/mgba/internal/gba/renderers/video-software.h index 59c2a7ce8..514dc3593 100644 --- a/include/mgba/internal/gba/renderers/video-software.h +++ b/include/mgba/internal/gba/renderers/video-software.h @@ -139,9 +139,9 @@ struct GBAVideoSoftwareRenderer { 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;