1
0
Fork 0
forked from len0rd/rockbox

Removed lcd_getfontsize(). Removed font parameters to lcd_putsxy and lcd_getstringsize.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2403 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-09-24 18:04:15 +00:00
parent 614272c45f
commit a4c3b03f15
19 changed files with 156 additions and 171 deletions

View file

@ -113,28 +113,28 @@ void roll_credits(void)
int height;
int width;
lcd_getfontsize(FONT_UI, &width, &height);
lcd_getstringsize("A", &width, &height);
while(1) {
lcd_clear_display();
for ( i=0; i <= (64-y)/height; i++ )
lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:"", FONT_UI);
snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ",
line+1, numnames);
lcd_putsxy(0, 0, buffer, FONT_UI);
lcd_update();
lcd_clear_display();
for ( i=0; i <= (64-y)/height; i++ )
lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:"");
snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ",
line+1, numnames);
lcd_putsxy(0, 0, buffer);
lcd_update();
if (button_get_w_tmo(HZ/20))
return;
if (button_get_w_tmo(HZ/20))
return;
y--;
y--;
if(y<0) {
line++;
if(line >= numnames)
break;
y+=height;
}
if(y<0) {
line++;
if(line >= numnames)
break;
y+=height;
}
}
return;