Fix frame advance

This commit is contained in:
Jeffrey Pfau 2014-07-22 02:11:41 -07:00
parent 04823fb06c
commit 42041fa059
1 changed files with 2 additions and 1 deletions

View File

@ -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);