all repos — mgba @ bf54c2d36fa64d4819cda0ff903eae5dc79c3548

mGBA Game Boy Advance Emulator

Qt: Fix unused variable warning in SettingsView
Vicki Pfau vi@endrift.com
Sat, 21 Nov 2020 17:28:53 -0800
commit

bf54c2d36fa64d4819cda0ff903eae5dc79c3548

parent

d2fbd88c78ea74c07336d2ac9f382f8b5447f131

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

jump to
M src/platform/qt/SettingsView.cppsrc/platform/qt/SettingsView.cpp

@@ -417,6 +417,7 @@ saveSetting("logFile", m_ui.logFile);

saveSetting("useDiscordPresence", m_ui.useDiscordPresence); saveSetting("gba.audioHle", m_ui.audioHle); saveSetting("dynamicTitle", m_ui.dynamicTitle); + saveSetting("videoScale", m_ui.videoScale); if (m_ui.audioBufferSize->currentText().toInt() > 8192) { m_ui.audioBufferSize->setCurrentText("8192");

@@ -501,9 +502,6 @@ if (language != m_controller->getQtOption("language").toLocale() && !(language.bcp47Name() == QLocale::system().bcp47Name() && m_controller->getQtOption("language").isNull())) {

m_controller->setQtOption("language", language.bcp47Name()); emit languageChanged(); } - - int videoScale = m_controller->getOption("videoScale", 1).toInt(); - saveSetting("videoScale", m_ui.videoScale); int hwaccelVideo = m_controller->getOption("hwaccelVideo").toInt(); saveSetting("hwaccelVideo", m_ui.hwaccelVideo->currentIndex());