Qt: Fix texture filtering drop-down in game properties

This commit is contained in:
Connor McLaughlin 2020-09-13 20:25:39 +10:00
parent 3232e3b164
commit ed5c03e0d5
2 changed files with 8 additions and 1 deletions

View File

@ -134,6 +134,13 @@ void GamePropertiesDialog::setupAdditionalUi()
m_ui.userResolutionScale->addItem(tr("(unchanged)")); m_ui.userResolutionScale->addItem(tr("(unchanged)"));
QtUtils::FillComboBoxWithResolutionScales(m_ui.userResolutionScale); QtUtils::FillComboBoxWithResolutionScales(m_ui.userResolutionScale);
m_ui.userTextureFiltering->addItem(tr("(unchanged)"));
for (u32 i = 0; i < static_cast<u32>(GPUTextureFilter::Count); i++)
{
m_ui.userTextureFiltering->addItem(
qApp->translate("GPUTextureFilter", Settings::GetTextureFilterDisplayName(static_cast<GPUTextureFilter>(i))));
}
m_ui.userControllerType1->addItem(tr("(unchanged)")); m_ui.userControllerType1->addItem(tr("(unchanged)"));
for (u32 i = 0; i < static_cast<u32>(ControllerType::Count); i++) for (u32 i = 0; i < static_cast<u32>(ControllerType::Count); i++)
{ {

View File

@ -262,7 +262,7 @@
<item row="1" column="1"> <item row="1" column="1">
<widget class="QComboBox" name="userTextureFiltering" /> <widget class="QComboBox" name="userTextureFiltering" />
</item> </item>
<item row="1" column="0" colspan="2"> <item row="2" column="0" colspan="2">
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QCheckBox" name="userTrueColor"> <widget class="QCheckBox" name="userTrueColor">