From 9b73c8906afb11d386c49be02f0b50a1232ea241 Mon Sep 17 00:00:00 2001 From: DeaTh-G Date: Mon, 2 Feb 2026 18:06:07 +0100 Subject: [PATCH] test 3 --- UnleashedRecomp/ui/options_menu.cpp | 4 ++-- UnleashedRecomp/user/config.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index 33ac5c69..d0d328fb 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -825,8 +825,8 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef* conf // remember value s_oldValue = config->Value; - if (config->LockCallback) - config->LockCallback(config); + // if (config->LockCallback) + // config->LockCallback(config); Game_PlaySound("sys_worldmap_decide"); } diff --git a/UnleashedRecomp/user/config.cpp b/UnleashedRecomp/user/config.cpp index 3d217b26..bd622b7f 100644 --- a/UnleashedRecomp/user/config.cpp +++ b/UnleashedRecomp/user/config.cpp @@ -753,9 +753,9 @@ void Config::CreateCallbacks() { Config::WindowSize.LockCallback = [](ConfigDef* def) { - // // Try matching the current window size with a known configuration. - // if (def->Value < 0) - // def->Value = GameWindow::FindNearestDisplayMode(); + // Try matching the current window size with a known configuration. + if (def->Value < 0) + def->Value = GameWindow::FindNearestDisplayMode(); }; Config::WindowSize.ApplyCallback = [](ConfigDef* def)