From 99538b73f52d36a6c16d7d6c2de40eed1db29844 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Mon, 27 Mar 2006 14:15:07 +0000 Subject: Clear the display in a less intrusive way to the user's selected background _color_ (solid color ghosting is hard to detect) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9288 a1c6a512-1295-4272-9138-f99709370657 --- firmware/powermgmt.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'firmware') diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 1a0404bbda..688d03124f 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -1046,13 +1046,11 @@ void shutdown_hw(void) #elif defined(HAVE_WM8758) || defined(HAVE_WM8975) wmcodec_close(); #endif -#ifdef APPLE_IPODVIDEO - /* Fill the screen solid white on 5g to +#if defined(IPOD_ARCH) && defined(HAVE_LCD_COLOR) + /* Clear the screen and backdrop to remove ghosting effect on shutdown */ + lcd_set_backdrop(NULL); lcd_clear_display(); - lcd_set_drawmode(DRMODE_SOLID); - lcd_set_foreground(LCD_WHITE); - lcd_fillrect(0, 0, LCD_WIDTH, LCD_HEIGHT); lcd_update(); sleep(HZ/16); #endif -- cgit v1.2.3