forked from len0rd/rockbox
make grey targets reject viewport colours if theyare more than one letter (i.e %Vb(333333) )
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27664 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c0838068e3
commit
bc046ff899
1 changed files with 1 additions and 1 deletions
|
@ -920,7 +920,7 @@ bool parse_color(char *text, int *value)
|
|||
#endif
|
||||
|
||||
#if LCD_DEPTH == 2 || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH == 2)
|
||||
if (!is0123(*text))
|
||||
if (text[1] != '\0' || !is0123(*text))
|
||||
return false;
|
||||
*value = *text - '0';
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue