diff --git a/src/gba/renderers/video-software.c b/src/gba/renderers/video-software.c index e56ff673b..7ae29de65 100644 --- a/src/gba/renderers/video-software.c +++ b/src/gba/renderers/video-software.c @@ -75,7 +75,7 @@ static void GBAVideoSoftwareRendererInit(struct GBAVideoRenderer* renderer) { struct GBAVideoSoftwareRenderer* softwareRenderer = (struct GBAVideoSoftwareRenderer*) renderer; int y; - for (y = 0; y < softwareRenderer->masterEnd; ++y) { + for (y = 0; y < softwareRenderer->masterHeight; ++y) { color_t* row = &softwareRenderer->outputBuffer[softwareRenderer->outputBufferStride * y]; int x; for (x = 0; x < softwareRenderer->masterEnd; ++x) {