all repos — mgba @ a47bc8455c826a6618089207e96864f78e461c96

mGBA Game Boy Advance Emulator

GBA Video: Fix IO cache size
Vicki Pfau vi@endrift.com
Mon, 24 Feb 2020 19:53:26 -0800
commit

a47bc8455c826a6618089207e96864f78e461c96

parent

12ae8ba9491b8428711cbbde50f8cc5719007cfa

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M include/mgba/internal/gba/renderers/video-software.hinclude/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;