all repos — mgba @ 9ec24a5b97308d6cf413a978dd83f944b33214fb

mGBA Game Boy Advance Emulator

Qt: Minor code cleanup for setTurbo
Jeffrey Pfau jeffrey@endrift.com
Fri, 02 Jan 2015 02:04:09 -0800
commit

9ec24a5b97308d6cf413a978dd83f944b33214fb

parent

569e6ef7db2ac225af64ecd43e916147a6ae3141

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

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