all repos — mgba @ 961121808d23e8286e9ae608ed78d1aef6811274

mGBA Game Boy Advance Emulator

Wake up the drawing thread after loading a state to make sure it draws the loaded state
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Oct 2014 23:40:40 -0700
commit

961121808d23e8286e9ae608ed78d1aef6811274

parent

6afc00b4723a8141f9b014814fbc37bd4bfa3de9

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

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

@@ -207,6 +207,7 @@

void GameController::loadState(int slot) { GBAThreadInterrupt(&m_threadContext); GBALoadState(m_threadContext.gba, m_threadContext.stateDir, slot); + ConditionWake(&m_threadContext.sync.videoFrameAvailableCond); // Hack: wake up the drawing thread GBAThreadContinue(&m_threadContext); emit stateLoaded(&m_threadContext); emit frameAvailable(m_drawContext);