all repos — mgba @ 903ea6bc195855b298365870d348aec3d2bdc162

mGBA Game Boy Advance Emulator

GBA, GB: Fix FrameStarted callback
Vicki Pfau vi@endrift.com
Thu, 09 Feb 2017 22:32:56 -0800
commit

903ea6bc195855b298365870d348aec3d2bdc162

parent

3034253e53528d1772a808b2155aedcea9285de8

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

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

@@ -250,7 +250,7 @@

size_t c; for (c = 0; c < mCoreCallbacksListSize(&video->p->coreCallbacks); ++c) { struct mCoreCallbacks* callbacks = mCoreCallbacksListGetPointer(&video->p->coreCallbacks, c); - if (callbacks->videoFrameEnded) { + if (callbacks->videoFrameStarted) { callbacks->videoFrameStarted(callbacks->context); } }
M src/gba/gba.csrc/gba/gba.c

@@ -636,7 +636,7 @@

size_t c; for (c = 0; c < mCoreCallbacksListSize(&gba->coreCallbacks); ++c) { struct mCoreCallbacks* callbacks = mCoreCallbacksListGetPointer(&gba->coreCallbacks, c); - if (callbacks->videoFrameEnded) { + if (callbacks->videoFrameStarted) { callbacks->videoFrameStarted(callbacks->context); } }