1
0
Fork 0
forked from len0rd/rockbox

So, I was skimming the irc logs from my 3 day absense and I was pinged about a bug in the simplelist code and this function in particular. Neither time was the actual bug explained so I dont know what this commit fixes... I'm fairly certain it does fix it though because the old code was rediculously wrong. MY guess is it has something to do with the radio debug screen seen as its the only call to this with the param != 0.

Please use the damn tracker for bug reports.. pinging someone when they arnt even online (as opposed to idling in the channel) really is a waste of time.)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17204 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-04-21 13:32:10 +00:00
parent 2920359cca
commit fa64dbb525

View file

@ -787,10 +787,11 @@ static char simplelist_text[SIMPLELIST_MAX_LINES][SIMPLELIST_MAX_LINELENGTH];
void simplelist_set_line_count(int lines)
{
if (lines < 0)
lines = 0;
else if (lines > SIMPLELIST_MAX_LINES)
lines = SIMPLELIST_MAX_LINES;
simplelist_line_count = 0;
simplelist_line_count = 0;
else if (lines >= SIMPLELIST_MAX_LINES)
simplelist_line_count = SIMPLELIST_MAX_LINES;
else
simplelist_line_count = lines;
}
/* get the current amount of lines shown */
int simplelist_get_line_count(void)