From 8f0f6f23e159fea93220539da700b075ac8e00d1 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Sat, 25 Sep 2021 15:23:01 -0400 Subject: [PATCH] Fix for frame count not initializing correctly on video options page. --- src/drivers/Qt/AviRecord.cpp | 2 ++ src/drivers/Qt/ConsoleVideoConf.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/drivers/Qt/AviRecord.cpp b/src/drivers/Qt/AviRecord.cpp index aca54eab..f89051dc 100644 --- a/src/drivers/Qt/AviRecord.cpp +++ b/src/drivers/Qt/AviRecord.cpp @@ -3037,6 +3037,8 @@ void LibavOptionsPage::initCodecLists(void) initSampleFormatSelect( audioEncSel->currentText().toStdString().c_str() ); initSampleRateSelect( audioEncSel->currentText().toStdString().c_str() ); initChannelLayoutSelect( audioEncSel->currentText().toStdString().c_str() ); + + videoEncSel->model()->sort(0); } //----------------------------------------------------- void LibavOptionsPage::includeAudioChanged(bool checked) diff --git a/src/drivers/Qt/ConsoleVideoConf.cpp b/src/drivers/Qt/ConsoleVideoConf.cpp index 6c5a5811..9b93d905 100644 --- a/src/drivers/Qt/ConsoleVideoConf.cpp +++ b/src/drivers/Qt/ConsoleVideoConf.cpp @@ -64,6 +64,10 @@ ConsoleVideoConfDialog_t::ConsoleVideoConfDialog_t(QWidget *parent) fontCharWidth = fm.width(QLatin1Char('2')); #endif + g_config->getOption("SDL.ShowFrameCount", &frame_display); + g_config->getOption("SDL.ShowLagCount", &lagCounterDisplay); + g_config->getOption("SDL.ShowRerecordCount", &rerecord_display); + style = this->style(); setWindowTitle( tr("Video Config") );