Qt: Minor code cleanup for setTurbo

This commit is contained in:
Jeffrey Pfau 2015-01-02 02:04:09 -08:00
parent 569e6ef7db
commit 9ec24a5b97
1 changed files with 1 additions and 5 deletions

View File

@ -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;