forked from len0rd/rockbox
USE_SCREENSAVERS define added so that we can build w/o Screensavers for the recorders if we want
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2097 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
883adb5bfc
commit
1b9109aba2
5 changed files with 22 additions and 5 deletions
|
|
@ -37,10 +37,14 @@
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
#include "games_menu.h"
|
#include "games_menu.h"
|
||||||
#include "screensavers_menu.h"
|
|
||||||
#include "bmp.h"
|
#include "bmp.h"
|
||||||
#include "icons.h"
|
#include "icons.h"
|
||||||
#endif
|
|
||||||
|
#ifdef USE_SCREENSAVERS
|
||||||
|
#include "screensavers_menu.h"
|
||||||
|
#endif /* End USE_SCREENSAVERS */
|
||||||
|
|
||||||
|
#endif /* End HAVE_LCD_BITMAP */
|
||||||
|
|
||||||
int show_logo( void )
|
int show_logo( void )
|
||||||
{
|
{
|
||||||
|
|
@ -159,17 +163,20 @@ Menu show_info(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LCD_CHARCELLS
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
snprintf(s, sizeof(s), "Batt: %d%%%s", battery_level(), battery_level_safe() ? "" : "!");
|
snprintf(s, sizeof(s), "Batt: %d%%%s",
|
||||||
|
battery_level(), battery_level_safe() ? "" : "!");
|
||||||
lcd_puts(0, 1, s);
|
lcd_puts(0, 1, s);
|
||||||
#else
|
#else
|
||||||
#ifdef HAVE_CHARGE_CTRL
|
#ifdef HAVE_CHARGE_CTRL
|
||||||
if (charger_enabled)
|
if (charger_enabled)
|
||||||
snprintf(s, sizeof(s), "Battery: charging");
|
snprintf(s, sizeof(s), "Battery: charging");
|
||||||
else
|
else
|
||||||
snprintf(s, sizeof(s), "Battery: %d%%%s", battery_level(), battery_level_safe() ? "" : " !!");
|
snprintf(s, sizeof(s), "Battery: %d%%%s",
|
||||||
|
battery_level(), battery_level_safe() ? "" : " !!");
|
||||||
lcd_puts(0, 3, s);
|
lcd_puts(0, 3, s);
|
||||||
#else
|
#else
|
||||||
snprintf(s, sizeof(s), "Battery: %d%%%s", battery_level(), battery_level_safe() ? "" : " !!");
|
snprintf(s, sizeof(s), "Battery: %d%%%s",
|
||||||
|
battery_level(), battery_level_safe() ? "" : " !!");
|
||||||
lcd_puts(0, 3, s);
|
lcd_puts(0, 3, s);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -197,7 +204,9 @@ Menu main_menu(void)
|
||||||
{ "General Settings", settings_menu },
|
{ "General Settings", settings_menu },
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
{ "Games", games_menu },
|
{ "Games", games_menu },
|
||||||
|
#ifdef USE_SCREENSAVERS
|
||||||
{ "Screensavers", screensavers_menu },
|
{ "Screensavers", screensavers_menu },
|
||||||
|
#endif /* end USE_SCREENSAVERS */
|
||||||
#endif
|
#endif
|
||||||
{ "Info", show_info },
|
{ "Info", show_info },
|
||||||
{ "Version", show_credits },
|
{ "Version", show_credits },
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
#ifdef USE_SCREENSAVERS
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "button.h"
|
#include "button.h"
|
||||||
|
|
@ -90,6 +91,7 @@ Menu blank(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
#ifdef USE_SCREENSAVERS
|
||||||
|
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "button.h"
|
#include "button.h"
|
||||||
|
|
@ -132,3 +133,4 @@ Menu bounce(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
#ifdef USE_SCREENSAVERS
|
||||||
|
|
||||||
#include "boxes.h"
|
#include "boxes.h"
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
|
|
@ -126,3 +127,4 @@ Menu boxes(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
#ifdef USE_SCREENSAVERS
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
@ -52,3 +53,4 @@ Menu screensavers_menu(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue