1
0
Fork 0
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:
Jonathan Gordon 2010-08-02 12:50:16 +00:00
parent c0838068e3
commit bc046ff899

View file

@ -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