DS GX: Fix drawing non-existent scanlines

This commit is contained in:
Vicki Pfau 2017-02-28 19:28:32 -08:00
parent 432f079f3a
commit 548be81751
1 changed files with 2 additions and 0 deletions

View File

@ -323,6 +323,8 @@ void _startHblank9(struct mTiming* timing, void* context, uint32_t cyclesLate) {
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) {