1
0
Fork 0
forked from len0rd/rockbox

Made code more like C89.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2582 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mats Lidell 2002-10-11 11:39:36 +00:00
parent 2aab7cc4b5
commit 1305c88d18

View file

@ -666,13 +666,14 @@ bool wps_display(struct mp3entry* id3)
#if defined(HAVE_LCD_CHARCELLS) #if defined(HAVE_LCD_CHARCELLS)
bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count) bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count)
{ {
if(!id3)
return(false);
char player_progressbar[7]; char player_progressbar[7];
char binline[36]; char binline[36];
int songpos = 0; int songpos = 0;
int i,j; int i,j;
if (!id3)
return false;
memset(binline, 1, sizeof binline); memset(binline, 1, sizeof binline);
memset(player_progressbar, 1, sizeof player_progressbar); memset(player_progressbar, 1, sizeof player_progressbar);
if(id3->elapsed >= id3->length) if(id3->elapsed >= id3->length)
@ -694,6 +695,6 @@ bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count)
} }
} }
lcd_define_pattern(8,player_progressbar,7); lcd_define_pattern(8,player_progressbar,7);
return(true); return true;
} }
#endif #endif