From d03528d4daf55a2b64f47562c36663ba2318d0fe Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 22 Mar 2017 14:38:55 -0700 Subject: [PATCH] GBA Video: Fix getting height of buffer when initializing --- src/gba/renderers/video-software.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {