From 5bf1f062b9c95d37cff6da2889334e163ec9fdcd Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 24 Sep 2022 13:19:56 +1000 Subject: [PATCH] Qt: Re-add active/line offset to game properties (advanced) --- src/duckstation-qt/advancedsettingswidget.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/duckstation-qt/advancedsettingswidget.cpp b/src/duckstation-qt/advancedsettingswidget.cpp index 871e0736f..f035d556b 100644 --- a/src/duckstation-qt/advancedsettingswidget.cpp +++ b/src/duckstation-qt/advancedsettingswidget.cpp @@ -231,6 +231,18 @@ void AdvancedSettingsWidget::addTweakOptions() addMSAATweakOption(m_dialog, m_ui.tweakOptionTable, tr("Multisample Antialiasing")); + if (m_dialog->isPerGameSettings()) + { + addIntRangeTweakOption(m_dialog, m_ui.tweakOptionTable, tr("Display Active Start Offset"), "Display", + "ActiveStartOffset", -5000, 5000, 0); + addIntRangeTweakOption(m_dialog, m_ui.tweakOptionTable, tr("Display Active End Offset"), "Display", + "ActiveEndOffset", -5000, 5000, 0); + addIntRangeTweakOption(m_dialog, m_ui.tweakOptionTable, tr("Display Line Start Offset"), "Display", + "LineStartOffset", -128, 127, 0); + addIntRangeTweakOption(m_dialog, m_ui.tweakOptionTable, tr("Display Line End Offset"), "Display", "LineEndOffset", + -128, 127, 0); + } + addBooleanTweakOption(m_dialog, m_ui.tweakOptionTable, tr("PGXP Vertex Cache"), "GPU", "PGXPVertexCache", false); addFloatRangeTweakOption(m_dialog, m_ui.tweakOptionTable, tr("PGXP Geometry Tolerance"), "GPU", "PGXPTolerance", -1.0f, 100.0f, 0.25f, -1.0f); @@ -332,6 +344,10 @@ void AdvancedSettingsWidget::onResetToDefaultClicked() sif->DeleteValue("Display", "ShowStatusIndicators"); sif->DeleteValue("Main", "ApplyCompatibilitySettings"); sif->DeleteValue("Display", "MaxFPS"); + sif->DeleteValue("Display", "ActiveStartOffset"); + sif->DeleteValue("Display", "ActiveEndOffset"); + sif->DeleteValue("Display", "LineStartOffset"); + sif->DeleteValue("Display", "LineEndOffset"); sif->DeleteValue("GPU", "Multisamples"); sif->DeleteValue("GPU", "PerSampleShading"); sif->DeleteValue("GPU", "PGXPVertexCache");