mirror of https://github.com/mgba-emu/mgba.git
GB Video: Draw top scanline
This commit is contained in:
parent
c0b965a41e
commit
9de8576e71
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue