summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-12-03 22:49:48 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-12-03 22:49:48 +0000
commit4a66327583a8b5f850f822698582bf651b78da6e (patch)
treef521afb4afb46ee8ca3167d325cc4b4e58d0cf85
parentb43dba87607b4d5e1de42574ee43141719f41a87 (diff)
downloadrockbox-4a66327583a8b5f850f822698582bf651b78da6e.tar.gz
rockbox-4a66327583a8b5f850f822698582bf651b78da6e.zip
Some simulator corrections
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2919 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/sleeptimer.c2
-rw-r--r--uisimulator/common/stubs.c11
-rw-r--r--uisimulator/x11/Makefile5
3 files changed, 16 insertions, 2 deletions
diff --git a/apps/sleeptimer.c b/apps/sleeptimer.c
index c846e08486..cf4dd90bcb 100644
--- a/apps/sleeptimer.c
+++ b/apps/sleeptimer.c
@@ -49,13 +49,13 @@ bool sleeptimer_screen(void)
49 bool done = false; 49 bool done = false;
50 char buf[32]; 50 char buf[32];
51 int oldtime, newtime; 51 int oldtime, newtime;
52 int amount = 0;
52 53
53#ifdef HAVE_LCD_BITMAP 54#ifdef HAVE_LCD_BITMAP
54 lcd_setfont(FONT_UI); 55 lcd_setfont(FONT_UI);
55 lcd_getstringsize("M", &w, &h); 56 lcd_getstringsize("M", &w, &h);
56 lcd_setmargins(w, 8); 57 lcd_setmargins(w, 8);
57#endif 58#endif
58 int amount = 0;
59 59
60 while(!done) 60 while(!done)
61 { 61 {
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 9b628828ae..18aadf44d7 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -179,6 +179,17 @@ void mpeg_set_pitch(int pitch)
179 (void)pitch; 179 (void)pitch;
180} 180}
181 181
182static int sleeptime;
183void set_sleep_timer(int seconds)
184{
185 sleeptime = seconds;
186}
187
188int get_sleep_timer(void)
189{
190 return sleeptime;
191}
192
182#ifdef HAVE_LCD_CHARCELLS 193#ifdef HAVE_LCD_CHARCELLS
183void lcd_clearrect (int x, int y, int nx, int ny) 194void lcd_clearrect (int x, int y, int nx, int ny)
184{ 195{
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index 5a22f83c8f..ea511474a6 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -90,7 +90,7 @@ FIRMSRCS = $(LCDSRSC) sprintf.c id3.c debug.c usb.c mpeg.c power.c\
90 90
91APPS = main.c tree.c menu.c credits.c main_menu.c language.c\ 91APPS = main.c tree.c menu.c credits.c main_menu.c language.c\
92 playlist.c wps.c wps-display.c settings.c status.c icons.c\ 92 playlist.c wps.c wps-display.c settings.c status.c icons.c\
93 screens.c peakmeter.c viewer.c 93 screens.c peakmeter.c viewer.c sleeptimer.c
94 94
95MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c 95MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c
96 96
@@ -215,6 +215,9 @@ $(OBJDIR)/main.o: $(APPDIR)/main.c
215$(OBJDIR)/wps.o: $(APPDIR)/wps.c 215$(OBJDIR)/wps.o: $(APPDIR)/wps.c
216 $(CC) $(APPCFLAGS) -c $< -o $@ 216 $(CC) $(APPCFLAGS) -c $< -o $@
217 217
218$(OBJDIR)/sleeptimer.o: $(APPDIR)/sleeptimer.c
219 $(CC) $(APPCFLAGS) -c $< -o $@
220
218$(OBJDIR)/viewer.o: $(APPDIR)/viewer.c 221$(OBJDIR)/viewer.o: $(APPDIR)/viewer.c
219 $(CC) $(APPCFLAGS) -c $< -o $@ 222 $(CC) $(APPCFLAGS) -c $< -o $@
220 223