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
1 files changed,
1 insertions(+),
0 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/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);