all repos — mgba @ 42041fa0596c64ae74e9de9af829799276a23ad0

mGBA Game Boy Advance Emulator

Fix frame advance
Jeffrey Pfau jeffrey@endrift.com
Tue, 22 Jul 2014 02:11:41 -0700
commit

42041fa0596c64ae74e9de9af829799276a23ad0

parent

04823fb06c699325fd649991567b0e052dd0477b

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -54,8 +54,9 @@ m_threadContext.frameCallback = [] (GBAThread* context) {

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