all repos — mgba @ 31cf1622a7a91c2c4b4c5713ec1354063d37db17

mGBA Game Boy Advance Emulator

GB Video: Call finishFrame at end of vblank
Jeffrey Pfau jeffrey@endrift.com
Sat, 25 Jun 2016 01:34:29 -0700
commit

31cf1622a7a91c2c4b4c5713ec1354063d37db17

parent

f5663675a5ac78c2927fe0796df92f72be421535

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

jump to
M src/gb/video.csrc/gb/video.c

@@ -115,7 +115,6 @@ video->nextMode = GB_VIDEO_HORIZONTAL_LENGTH;

video->mode = 1; --video->frameskipCounter; if (video->frameskipCounter < 0) { - video->renderer->finishFrame(video->renderer); mCoreSyncPostFrame(video->p->sync); video->frameskipCounter = video->frameskip; }

@@ -154,6 +153,7 @@ if (GBRegisterSTATIsOAMIRQ(video->stat)) {

video->p->memory.io[REG_IF] |= (1 << GB_IRQ_LCDSTAT); GBUpdateIRQs(video->p); } + video->renderer->finishFrame(video->renderer); break; } else if (video->ly == GB_VIDEO_VERTICAL_TOTAL_PIXELS) { video->p->memory.io[REG_LY] = 0;