diff --git a/src/gb/video.c b/src/gb/video.c index fda0f6111..465380fa9 100644 --- a/src/gb/video.c +++ b/src/gb/video.c @@ -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); } } diff --git a/src/gba/gba.c b/src/gba/gba.c index 49c96bd2d..d7ff611fe 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -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); } }