mirror of https://github.com/mgba-emu/mgba.git
Qt: Minor code cleanup for setTurbo
This commit is contained in:
parent
569e6ef7db
commit
9ec24a5b97
|
@ -377,11 +377,7 @@ void GameController::setTurbo(bool set, bool forced) {
|
|||
return;
|
||||
}
|
||||
m_turbo = set;
|
||||
if (set) {
|
||||
m_turboForced = forced;
|
||||
} else {
|
||||
m_turboForced = false;
|
||||
}
|
||||
m_turboForced = set && forced;
|
||||
threadInterrupt();
|
||||
m_threadContext.sync.audioWait = set ? false : m_audioSync;
|
||||
m_threadContext.sync.videoFrameWait = set ? false : m_videoSync;
|
||||
|
|
Loading…
Reference in New Issue