all repos — mgba @ d03528d4daf55a2b64f47562c36663ba2318d0fe

mGBA Game Boy Advance Emulator

GBA Video: Fix getting height of buffer when initializing
Vicki Pfau vi@endrift.com
Wed, 22 Mar 2017 14:38:55 -0700
commit

d03528d4daf55a2b64f47562c36663ba2318d0fe

parent

9337d808d250108259d2c65e8e50ef561deef2ae

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

jump to
M src/gba/renderers/video-software.csrc/gba/renderers/video-software.c

@@ -75,7 +75,7 @@

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) {