mirror of https://github.com/mgba-emu/mgba.git
Fix frame advance
This commit is contained in:
parent
04823fb06c
commit
42041fa059
|
@ -54,8 +54,9 @@ GameController::GameController(QObject* parent)
|
|||
GameController* controller = static_cast<GameController*>(context->userData);
|
||||
controller->m_pauseMutex.lock();
|
||||
if (controller->m_pauseAfterFrame) {
|
||||
GBAThreadPause(context);
|
||||
GBAThreadPauseFromThread(context);
|
||||
controller->m_pauseAfterFrame = false;
|
||||
controller->gamePaused(&controller->m_threadContext);
|
||||
}
|
||||
controller->m_pauseMutex.unlock();
|
||||
controller->frameAvailable(controller->m_drawContext);
|
||||
|
|
Loading…
Reference in New Issue