GB Video: Draw top scanline

This commit is contained in:
Jeffrey Pfau 2016-01-20 23:02:54 -08:00
parent c0b965a41e
commit 9de8576e71
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ int32_t GBVideoProcessEvents(struct GBVideo* video, int32_t cycles) {
++video->ly;
if (video->ly >= GB_VIDEO_VERTICAL_TOTAL_PIXELS) {
video->ly = 0;
video->renderer->drawScanline(video->renderer, video->ly);
video->nextMode = GB_VIDEO_MODE_2_LENGTH;
video->mode = 2;
if (GBRegisterSTATIsOAMIRQ(video->stat)) {