mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Some simulator corrections
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2919 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b43dba8760
commit
4a66327583
3 changed files with 16 additions and 2 deletions
|
|
@ -49,13 +49,13 @@ bool sleeptimer_screen(void)
|
||||||
bool done = false;
|
bool done = false;
|
||||||
char buf[32];
|
char buf[32];
|
||||||
int oldtime, newtime;
|
int oldtime, newtime;
|
||||||
|
int amount = 0;
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
lcd_setfont(FONT_UI);
|
lcd_setfont(FONT_UI);
|
||||||
lcd_getstringsize("M", &w, &h);
|
lcd_getstringsize("M", &w, &h);
|
||||||
lcd_setmargins(w, 8);
|
lcd_setmargins(w, 8);
|
||||||
#endif
|
#endif
|
||||||
int amount = 0;
|
|
||||||
|
|
||||||
while(!done)
|
while(!done)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,17 @@ void mpeg_set_pitch(int pitch)
|
||||||
(void)pitch;
|
(void)pitch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int sleeptime;
|
||||||
|
void set_sleep_timer(int seconds)
|
||||||
|
{
|
||||||
|
sleeptime = seconds;
|
||||||
|
}
|
||||||
|
|
||||||
|
int get_sleep_timer(void)
|
||||||
|
{
|
||||||
|
return sleeptime;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_LCD_CHARCELLS
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
void lcd_clearrect (int x, int y, int nx, int ny)
|
void lcd_clearrect (int x, int y, int nx, int ny)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ FIRMSRCS = $(LCDSRSC) sprintf.c id3.c debug.c usb.c mpeg.c power.c\
|
||||||
|
|
||||||
APPS = main.c tree.c menu.c credits.c main_menu.c language.c\
|
APPS = main.c tree.c menu.c credits.c main_menu.c language.c\
|
||||||
playlist.c wps.c wps-display.c settings.c status.c icons.c\
|
playlist.c wps.c wps-display.c settings.c status.c icons.c\
|
||||||
screens.c peakmeter.c viewer.c
|
screens.c peakmeter.c viewer.c sleeptimer.c
|
||||||
|
|
||||||
MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c
|
MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c
|
||||||
|
|
||||||
|
|
@ -215,6 +215,9 @@ $(OBJDIR)/main.o: $(APPDIR)/main.c
|
||||||
$(OBJDIR)/wps.o: $(APPDIR)/wps.c
|
$(OBJDIR)/wps.o: $(APPDIR)/wps.c
|
||||||
$(CC) $(APPCFLAGS) -c $< -o $@
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
$(OBJDIR)/sleeptimer.o: $(APPDIR)/sleeptimer.c
|
||||||
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJDIR)/viewer.o: $(APPDIR)/viewer.c
|
$(OBJDIR)/viewer.o: $(APPDIR)/viewer.c
|
||||||
$(CC) $(APPCFLAGS) -c $< -o $@
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue