Qt: Fix screen not redrawing when loading a state
Jeffrey Pfau jeffrey@endrift.com
Sun, 28 Jun 2015 17:44:14 -0700
1 files changed,
3 insertions(+),
3 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -152,8 +152,8 @@ };
connect(&m_rewindTimer, &QTimer::timeout, [this]() { GBARewind(&m_threadContext, 1); - emit rewound(&m_threadContext); emit frameAvailable(m_drawContext); + emit rewound(&m_threadContext); }); m_rewindTimer.setInterval(100);@@ -478,8 +478,8 @@ } else {
GBARewind(&m_threadContext, states); } threadContinue(); - emit rewound(&m_threadContext); emit frameAvailable(m_drawContext); + emit rewound(&m_threadContext); } void GameController::startRewinding() {@@ -574,8 +574,8 @@ }
GBARunOnThread(&m_threadContext, [](GBAThread* context) { GameController* controller = static_cast<GameController*>(context->userData); if (GBALoadState(context, context->stateDir, controller->m_stateSlot)) { - controller->stateLoaded(context); controller->frameAvailable(controller->m_drawContext); + controller->stateLoaded(context); } }); }