From ec9707e73a07f6f9e4615b563fbfde162d2fccce Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Sun, 22 Mar 2026 01:20:09 +0100 Subject: [PATCH] Change active fg in/out mode when an incompatible one is selected This does also make the warning silent which might not be ideal. This needs to be moved out of menu code --- OptiScaler/menu/menu_common.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OptiScaler/menu/menu_common.cpp b/OptiScaler/menu/menu_common.cpp index 78daf47b..f0c35509 100644 --- a/OptiScaler/menu/menu_common.cpp +++ b/OptiScaler/menu/menu_common.cpp @@ -2972,6 +2972,10 @@ bool MenuCommon::RenderMenu() { LOG_WARN("Resetting FGInput to NoFG: {}", inputOptions[(uint32_t) state.activeFgInput].label); config->FGInput = FGInput::NoFG; + + // Changing active can be dangerous but we are talking about an unsupported mode + // which shouldn't even actually have taken affect + state.activeFgInput = FGInput::NoFG; } // Unsupported FG output selected @@ -2980,6 +2984,7 @@ bool MenuCommon::RenderMenu() { LOG_WARN("Resetting FGOutput to NoFG: {}", outputOptions[(uint32_t) state.activeFgOutput].label); config->FGOutput = FGOutput::NoFG; + state.activeFgOutput = FGOutput::NoFG; } if (!config->FGOutput.has_value())