all repos — mgba @ 420a15a84151065982c1170b0983f136e9b1cddb

mGBA Game Boy Advance Emulator

GB Video: Don't blank screen on SGB (fixes #1063)
Vicki Pfau vi@endrift.com
Mon, 23 Apr 2018 22:49:36 -0700
commit

420a15a84151065982c1170b0983f136e9b1cddb

parent

16c0132e8fd44f8e5d189540927a6a98cdde7aa7

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

jump to
M src/gb/renderers/software.csrc/gb/renderers/software.c

@@ -29,8 +29,8 @@ static void GBVideoSoftwareRendererDrawObj(struct GBVideoSoftwareRenderer* renderer, struct GBObj* obj, int startX, int endX, int y);

static void _clearScreen(struct GBVideoSoftwareRenderer* renderer) { size_t sgbOffset = 0; - if (renderer->model == GB_MODEL_SGB && renderer->sgbBorders) { - sgbOffset = renderer->outputBufferStride * 40 + 48; + if (renderer->model == GB_MODEL_SGB) { + return; } int y; for (y = 0; y < GB_VIDEO_VERTICAL_PIXELS; ++y) {