Qt: Minor code cleanup for setTurbo
Jeffrey Pfau jeffrey@endrift.com
Fri, 02 Jan 2015 02:04:09 -0800
1 files changed,
1 insertions(+),
5 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -377,11 +377,7 @@ if (m_turboForced && !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;