all repos — mgba @ 697b550b375fb5df76f4bdb2ff2f6437858eca26

mGBA Game Boy Advance Emulator

Qt: Fix screen not redrawing when loading a state
Jeffrey Pfau jeffrey@endrift.com
Sun, 28 Jun 2015 17:44:14 -0700
commit

697b550b375fb5df76f4bdb2ff2f6437858eca26

parent

0aef1bc6df48a302284fee37b8834d8aec09b379

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

jump to
M src/platform/qt/GameController.cppsrc/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); } }); }