This commit is contained in:
DeaTh-G 2026-02-02 18:06:07 +01:00
parent f56d90018d
commit 9b73c8906a
2 changed files with 5 additions and 5 deletions

View file

@ -825,8 +825,8 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef<T>* conf
// remember value
s_oldValue = config->Value;
if (config->LockCallback)
config->LockCallback(config);
// if (config->LockCallback)
// config->LockCallback(config);
Game_PlaySound("sys_worldmap_decide");
}

View file

@ -753,9 +753,9 @@ void Config::CreateCallbacks()
{
Config::WindowSize.LockCallback = [](ConfigDef<int32_t>* 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<int32_t>* def)