mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Rockboy: Added an short stats option which only shows the two numbers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28658 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5a9805d24e
commit
286eceb04b
2 changed files with 14 additions and 3 deletions
|
@ -1108,8 +1108,13 @@ void lcd_refreshline(void)
|
|||
{
|
||||
if(options.showstats)
|
||||
{
|
||||
rb->lcd_putsxyf(0,LCD_HEIGHT-10,"FPS: %d Frameskip: %d ",
|
||||
options.fps, options.frameskip);
|
||||
if(options.showstats==1) {
|
||||
rb->lcd_putsxyf(0,LCD_HEIGHT-10," %d %d ",
|
||||
options.fps, options.frameskip);
|
||||
} else {
|
||||
rb->lcd_putsxyf(0,LCD_HEIGHT-10," FPS: %d Frameskip: %d ",
|
||||
options.fps, options.frameskip);
|
||||
}
|
||||
rb->lcd_update_rect(0,LCD_HEIGHT-10, LCD_WIDTH, 10);
|
||||
}
|
||||
|
||||
|
|
|
@ -349,6 +349,12 @@ static void do_opt_menu(void)
|
|||
{ "On" , -1 },
|
||||
};
|
||||
|
||||
static const struct opt_items stats[3] = {
|
||||
{ "Off", -1 },
|
||||
{ "Short" , -1 },
|
||||
{ "Full" , -1 },
|
||||
};
|
||||
|
||||
static const struct opt_items frameskip[]= {
|
||||
{ "0 Max", -1 },
|
||||
{ "1 Max", -1 },
|
||||
|
@ -440,7 +446,7 @@ static void do_opt_menu(void)
|
|||
rb->option_screen((struct settings_list*)vol, parentvp, false, "Volume");
|
||||
break;
|
||||
case 3: /* Stats */
|
||||
rb->set_option("Stats", &options.showstats, INT, onoff, 2, NULL );
|
||||
rb->set_option("Stats", &options.showstats, INT, stats, 3, NULL );
|
||||
break;
|
||||
case 4: /* Keys */
|
||||
setupkeys();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue