feat: support widht and height set in toggle_named_scratch

This commit is contained in:
DreamMaoMao 2025-05-05 11:19:57 +08:00
parent 90edcafd4e
commit fc2eaf144d
2 changed files with 9 additions and 4 deletions

View file

@ -557,6 +557,8 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value, char *arg_v
func = toggle_named_scratch;
(*arg).v = strdup(arg_value);
(*arg).v2 = strdup(arg_value2);
(*arg).ui = arg_value3 ? atoi(arg_value3) : 0;
(*arg).ui2 = arg_value4 ? atoi(arg_value4) : 0;
} else {
return NULL;
}