summaryrefslogtreecommitdiffstats
path: root/firmware/target/coldfire/system-coldfire.c
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-11-14 11:27:41 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-11-14 11:27:41 +0000
commit81f72ddef6ff4e07ad437b48b5460f761a7f17f3 (patch)
treefc5b9e0c9f08c6ee9fc3c8fb3e7626e96fb4c8f3 /firmware/target/coldfire/system-coldfire.c
parentd1963e14dede231129a9ae9988b55c157181e8a0 (diff)
downloadrockbox-81f72ddef6ff4e07ad437b48b5460f761a7f17f3.tar.gz
rockbox-81f72ddef6ff4e07ad437b48b5460f761a7f17f3.zip
Set DRMODE_SOLID, uniform colors, and sysfont before clearing LCD to display panic or exception messages - see FS#10665.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23623 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/system-coldfire.c')
-rw-r--r--firmware/target/coldfire/system-coldfire.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/target/coldfire/system-coldfire.c b/firmware/target/coldfire/system-coldfire.c
index 8ae702fdfc..a387824526 100644
--- a/firmware/target/coldfire/system-coldfire.c
+++ b/firmware/target/coldfire/system-coldfire.c
@@ -167,8 +167,15 @@ static void system_display_exception_info(unsigned long format,
int vector = (format >> 18) & 0xff;
/* clear screen */
- lcd_clear_display ();
+#if LCD_DEPTH > 1
+ lcd_set_backdrop(NULL);
+ lcd_set_drawmode(DRMODE_SOLID);
+ lcd_set_foreground(LCD_BLACK);
+ lcd_set_background(LCD_WHITE);
+#endif
lcd_setfont(FONT_SYSFIXED);
+ lcd_set_viewport(NULL);
+ lcd_clear_display();
lcd_putsf(0, 0, "I%02x:%s", vector, irqname[vector]);
lcd_putsf(0, 1, "at %08x", pc);