Qt: Fix infrequent deadlock when using sync to video

This commit is contained in:
Vicki Pfau 2021-04-23 20:44:49 -07:00
parent 2232e7f65f
commit 8ede727c81
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,7 @@
0.9.2: (Future)
Other fixes:
- Qt: Fix infrequent deadlock when using sync to video
0.9.1: (2021-04-18)
Emulation fixes:
- ARM: Fix LDM^ with empty rlist (fixes mgba.io/i/2127)

View File

@ -158,7 +158,6 @@ void DisplayGL::stopDrawing() {
void DisplayGL::pauseDrawing() {
if (m_hasStarted) {
m_isDrawing = false;
CoreController::Interrupter interrupter(m_context);
QMetaObject::invokeMethod(m_painter.get(), "pause", Qt::BlockingQueuedConnection);
#ifndef Q_OS_MAC
setUpdatesEnabled(true);
@ -169,7 +168,6 @@ void DisplayGL::pauseDrawing() {
void DisplayGL::unpauseDrawing() {
if (m_hasStarted) {
m_isDrawing = true;
CoreController::Interrupter interrupter(m_context);
QMetaObject::invokeMethod(m_painter.get(), "unpause", Qt::BlockingQueuedConnection);
#ifndef Q_OS_MAC
setUpdatesEnabled(false);