mirror of https://github.com/mgba-emu/mgba.git
GBA, GB: Fix FrameStarted callback
This commit is contained in:
parent
3034253e53
commit
903ea6bc19
|
@ -250,7 +250,7 @@ void _updateFrameCount(struct mTiming* timing, void* context, uint32_t cyclesLat
|
||||||
size_t c;
|
size_t c;
|
||||||
for (c = 0; c < mCoreCallbacksListSize(&video->p->coreCallbacks); ++c) {
|
for (c = 0; c < mCoreCallbacksListSize(&video->p->coreCallbacks); ++c) {
|
||||||
struct mCoreCallbacks* callbacks = mCoreCallbacksListGetPointer(&video->p->coreCallbacks, c);
|
struct mCoreCallbacks* callbacks = mCoreCallbacksListGetPointer(&video->p->coreCallbacks, c);
|
||||||
if (callbacks->videoFrameEnded) {
|
if (callbacks->videoFrameStarted) {
|
||||||
callbacks->videoFrameStarted(callbacks->context);
|
callbacks->videoFrameStarted(callbacks->context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -636,7 +636,7 @@ void GBAFrameStarted(struct GBA* gba) {
|
||||||
size_t c;
|
size_t c;
|
||||||
for (c = 0; c < mCoreCallbacksListSize(&gba->coreCallbacks); ++c) {
|
for (c = 0; c < mCoreCallbacksListSize(&gba->coreCallbacks); ++c) {
|
||||||
struct mCoreCallbacks* callbacks = mCoreCallbacksListGetPointer(&gba->coreCallbacks, c);
|
struct mCoreCallbacks* callbacks = mCoreCallbacksListGetPointer(&gba->coreCallbacks, c);
|
||||||
if (callbacks->videoFrameEnded) {
|
if (callbacks->videoFrameStarted) {
|
||||||
callbacks->videoFrameStarted(callbacks->context);
|
callbacks->videoFrameStarted(callbacks->context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue