DS GX: Fix drawing non-existent scanlines
Vicki Pfau vi@endrift.com
Tue, 28 Feb 2017 19:28:32 -0800
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/ds/video.c
→
src/ds/video.c
@@ -323,6 +323,8 @@ dispstat = GBARegisterDISPSTATFillInHblank(dispstat);
if (video->frameskipCounter <= 0) { if (video->vcount < DS_VIDEO_VERTICAL_PIXELS) { video->renderer->drawScanline(video->renderer, video->vcount); + } + if (video->vcount < DS_VIDEO_VERTICAL_PIXELS - 48) { video->p->gx.renderer->drawScanline(video->p->gx.renderer, video->vcount + 48); } if (video->vcount >= DS_VIDEO_VERTICAL_TOTAL_PIXELS - 48) {