Fix grey colour, from Magnus Gross.

This commit is contained in:
nicm 2024-09-29 20:05:42 +00:00
parent 489c69f5ed
commit 9bd039d1bc
2 changed files with 3 additions and 3 deletions

View File

@ -948,7 +948,7 @@ colour_byname(const char *name)
if (strncmp(name, "grey", 4) == 0 || strncmp(name, "gray", 4) == 0) {
if (name[4] == '\0')
return (-1);
return (0xbebebe|COLOUR_FLAG_RGB);
c = strtonum(name + 4, 0, 100, &errstr);
if (errstr != NULL)
return (-1);