summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-10-16 07:52:16 +0000
committerJens Arnold <amiconn@rockbox.org>2004-10-16 07:52:16 +0000
commit7c2496d35a1046d6383a7df8a78a1e9ba5cf7607 (patch)
treec47352d5c7377b6fb6fcbfecab472870e40c4569
parentdcd488307281e8d24f97281036412480b923aae4 (diff)
Fixes: (1) Use correct margins (2) Don't voice the 'Off' setting if voice UI is disabled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5294 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/sleeptimer.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/sleeptimer.c b/apps/sleeptimer.c
index c8a2726e76..4e6ca5313e 100644
--- a/apps/sleeptimer.c
+++ b/apps/sleeptimer.c
@@ -31,6 +31,7 @@
#include "status.h"
#include "debug.h"
#include "talk.h"
+#include "icons.h"
#include "lang.h"
@@ -41,9 +42,6 @@
bool sleeptimer_screen(void)
{
-#ifdef HAVE_LCD_BITMAP
- int w, h;
-#endif
unsigned long seconds;
int hours, minutes;
int button;
@@ -56,9 +54,10 @@ bool sleeptimer_screen(void)
bool sayit = true;
#ifdef HAVE_LCD_BITMAP
- lcd_setfont(FONT_UI);
- lcd_getstringsize("M", &w, &h);
- lcd_setmargins(w, 8);
+ if (global_settings.statusbar)
+ lcd_setmargins(0, STATUSBAR_HEIGHT);
+ else
+ lcd_setmargins(0, 0);
#endif
lcd_clear_display();
@@ -149,7 +148,7 @@ bool sleeptimer_screen(void)
else
{
lcd_puts(0, 1, str(LANG_OFF));
- if (sayit)
+ if (sayit && global_settings.talk_menu)
{
talk_id(LANG_OFF, false);
sayit = false;