GB Video: Don't blank screen on SGB (fixes #1063)
Vicki Pfau vi@endrift.com
Mon, 23 Apr 2018 22:49:36 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/gb/renderers/software.c
→
src/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) {