From 65bb4b4996d2daf47550e213e76080552ce909f6 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 23 Dec 2014 00:26:47 -0800 Subject: [PATCH] Qt: Add FPS target back to settings view --- src/platform/qt/SettingsView.cpp | 2 ++ src/platform/qt/SettingsView.ui | 59 ++++++++++++++++++++++++++------ 2 files changed, 50 insertions(+), 11 deletions(-) diff --git a/src/platform/qt/SettingsView.cpp b/src/platform/qt/SettingsView.cpp index b698cc4d6..b0cf5df4c 100644 --- a/src/platform/qt/SettingsView.cpp +++ b/src/platform/qt/SettingsView.cpp @@ -23,6 +23,7 @@ SettingsView::SettingsView(ConfigController* controller, QWidget* parent) loadSetting("videoSync", m_ui.videoSync); loadSetting("audioSync", m_ui.audioSync); loadSetting("frameskip", m_ui.frameskip); + loadSetting("fpsTarget", m_ui.fpsTarget); loadSetting("lockAspectRatio", m_ui.lockAspectRatio); loadSetting("rewindBufferInterval", m_ui.rewindInterval); loadSetting("rewindBufferCapacity", m_ui.rewindCapacity); @@ -46,6 +47,7 @@ void SettingsView::updateConfig() { saveSetting("videoSync", m_ui.videoSync); saveSetting("audioSync", m_ui.audioSync); saveSetting("frameskip", m_ui.frameskip); + saveSetting("fpsTarget", m_ui.fpsTarget); saveSetting("lockAspectRatio", m_ui.lockAspectRatio); saveSetting("rewindBufferInterval", m_ui.rewindInterval); saveSetting("rewindBufferCapacity", m_ui.rewindCapacity); diff --git a/src/platform/qt/SettingsView.ui b/src/platform/qt/SettingsView.ui index c5c200db5..96b2ac798 100644 --- a/src/platform/qt/SettingsView.ui +++ b/src/platform/qt/SettingsView.ui @@ -6,10 +6,16 @@ 0 0 - 339 - 503 + 350 + 501 + + + 0 + 0 + + Settings @@ -62,6 +68,9 @@ Use BIOS file + + true + @@ -205,35 +214,35 @@ - + Qt::Horizontal - + Lock aspect ratio - + Resample video - + Qt::Horizontal - + false @@ -243,14 +252,14 @@ - + Rewind interval: - + @@ -271,14 +280,14 @@ - + Rewind length: - + @@ -292,6 +301,34 @@ + + + + FPS target: + + + + + + + + + 240 + + + 60 + + + + + + + frames per second + + + + +