From 2d79b89acc9a2925a5c298847f77eac6ba42ddcb Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Thu, 16 May 2024 15:56:12 +0200 Subject: [PATCH] Qt: Change hw mipmap to a toggle button. --- pcsx2-qt/Settings/GraphicsSettingsWidget.cpp | 5 +-- pcsx2-qt/Settings/GraphicsSettingsWidget.ui | 44 +++++--------------- 2 files changed, 12 insertions(+), 37 deletions(-) diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp index 189bb93a87..6fd1cf825e 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp @@ -154,8 +154,7 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget* SettingWidgetBinder::BindWidgetToEnumSetting(sif, m_ui.anisotropicFiltering, "EmuCore/GS", "MaxAnisotropy", s_anisotropic_filtering_entries, s_anisotropic_filtering_values, "0"); SettingWidgetBinder::BindWidgetToIntSetting(sif, m_ui.dithering, "EmuCore/GS", "dithering_ps2", 2); - SettingWidgetBinder::BindWidgetToIntSetting( - sif, m_ui.mipmapping, "EmuCore/GS", "mipmap_hw", static_cast(HWMipmapLevel::Automatic), -1); + SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.mipmapping, "EmuCore/GS", "hw_mipmap", true); SettingWidgetBinder::BindWidgetToIntSetting( sif, m_ui.blending, "EmuCore/GS", "accurate_blending_unit", static_cast(AccBlendLevel::Basic)); SettingWidgetBinder::BindWidgetToIntSetting( @@ -477,7 +476,7 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget* "FMV resolution will remain unchanged, as the video files are pre-rendered.")); dialog->registerWidgetHelp( - m_ui.mipmapping, tr("Mipmapping"), tr("Automatic (Default)"), tr("Control the accuracy level of the mipmapping emulation.")); + m_ui.mipmapping, tr("Mipmapping"), tr("Checked"), tr("Enables mipmapping, which some games require to render correctly.")); dialog->registerWidgetHelp( m_ui.textureFiltering, tr("Texture Filtering"), tr("Bilinear (PS2)"), tr("Control the texture filtering of the emulation.")); diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.ui b/pcsx2-qt/Settings/GraphicsSettingsWidget.ui index f8d6857f5a..716f64f065 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.ui +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.ui @@ -472,37 +472,6 @@ - - - - Mipmapping: - - - - - - - - Automatic (Default) - - - - - Off - - - - - Basic (Generated Mipmaps) - - - - - Full (PS2 Mipmaps) - - - - @@ -678,9 +647,9 @@ - - - Manual Hardware Renderer Fixes + + + Mipmapping @@ -691,6 +660,13 @@ + + + + Manual Hardware Renderer Fixes + + +