GBA: Fix video callback not being called
Jeffrey Pfau jeffrey@endrift.com
Mon, 15 Jun 2015 23:02:02 -0700
2 files changed,
3 insertions(+),
5 deletions(-)
M
src/gba/gba.c
→
src/gba/gba.c
@@ -743,14 +743,13 @@ }
} } + if (gba->stream) { + gba->stream->postVideoFrame(gba->stream, gba->video.renderer); + } struct GBAThread* thread = GBAThreadGetContext(); if (!thread) { return; - } - - if (gba->stream) { - gba->stream->postVideoFrame(gba->stream, gba->video.renderer); } if (thread->frameCallback) {
M
src/platform/libretro/libretro.c
→
src/platform/libretro/libretro.c
@@ -172,7 +172,6 @@ int frameCount = gba.video.frameCounter;
while (gba.video.frameCounter == frameCount) { ARMRunLoop(&cpu); } - videoCallback(renderer.outputBuffer, VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS, BYTES_PER_PIXEL * 256); } void retro_reset(void) {