From ae815a0272311ac200d55a6a323b4a0a94f36124 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 12 Oct 2004 08:42:11 +0000 Subject: Removed the backlight control from the charging screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5255 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/screens.c b/apps/screens.c index ac8dea1c24..9a9ebff140 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -200,16 +200,9 @@ void charging_display_info(bool animate) snprintf(buf, 32, "not charging"); lcd_puts(0, 3, buf); - if (charger_enabled) - { - backlight_on(); /* using the light gives good indication */ - } - else - { - backlight_off(); + if (!charger_enabled) animate = false; - } -#endif +#endif /* middle part */ @@ -275,7 +268,8 @@ int charging_screen(void) ide_power_enable(false); /* power down the disk, else would be spinning */ lcd_clear_display(); - backlight_on(); + if(global_settings.backlight_on_when_charging) + backlight_on(); status_draw(true); #ifdef HAVE_LCD_BITMAP -- cgit v1.2.3