Fix for frame count not initializing correctly on video options page.

This commit is contained in:
mjbudd77 2021-09-25 15:23:01 -04:00
parent 5fd9b12a15
commit 8f0f6f23e1
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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") );