From 7c2496d35a1046d6383a7df8a78a1e9ba5cf7607 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 16 Oct 2004 07:52:16 +0000 Subject: 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 --- apps/sleeptimer.c | 13 ++++++------- 1 file 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; -- cgit v1.2.3