Added cycling both ways for switch_proportion_preset

Now switch_proportion_preset requires an argument "prev" or "next" to
determine cycle direction
This commit is contained in:
kanvolu 2026-03-06 22:23:59 -05:00 committed by DreamMaoMao
parent b1875f4663
commit 6438edc2b7
3 changed files with 24 additions and 8 deletions

View file

@ -928,6 +928,7 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value,
(*arg).f = atof(arg_value);
} else if (strcmp(func_name, "switch_proportion_preset") == 0) {
func = switch_proportion_preset;
(*arg).i = parse_circle_direction(arg_value);
} else if (strcmp(func_name, "viewtoleft") == 0) {
func = viewtoleft;
(*arg).i = atoi(arg_value);