all repos — mgba @ 548be8175198ae506af57bb7babb24eae805ab0a

mGBA Game Boy Advance Emulator

DS GX: Fix drawing non-existent scanlines
Vicki Pfau vi@endrift.com
Tue, 28 Feb 2017 19:28:32 -0800
commit

548be8175198ae506af57bb7babb24eae805ab0a

parent

432f079f3a03be16b58780ddebcbd2bd069ab90e

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

jump to
M src/ds/video.csrc/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) {