GBA, GB: Fix FrameStarted callback

This commit is contained in:
Vicki Pfau 2017-02-09 22:32:56 -08:00
parent 3034253e53
commit 903ea6bc19
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ void _updateFrameCount(struct mTiming* timing, void* context, uint32_t cyclesLat
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);
}
}

View File

@ -636,7 +636,7 @@ void GBAFrameStarted(struct GBA* gba) {
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);
}
}