allow the full lowercase a-z to be used as conditional viewport grouping id's

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17789 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-06-25 08:08:39 +00:00
parent b1dc552308
commit d8e56e30d7

View file

@ -601,7 +601,7 @@ static int parse_viewport(const char *wps_bufptr,
if (*(ptr+1) == '|')
{
char label = *(ptr+2);
if (label >= 'a' && label < 'a' + WPS_MAX_VIEWPORTS)
if (label >= 'a' && label <= 'z')
{
wps_data->viewports[wps_data->num_viewports].hidden_flags = VP_DRAW_HIDEABLE;
wps_data->viewports[wps_data->num_viewports].label = label;