summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-jz4740.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/mips/ingenic_jz47xx/system-jz4740.c
parentd1963e14dede231129a9ae9988b55c157181e8a0 (diff)
downloadrockbox-81f72ddef6ff4e07ad437b48b5460f761a7f17f3.tar.gz
rockbox-81f72ddef6ff4e07ad437b48b5460f761a7f17f3.tar.bz2
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/mips/ingenic_jz47xx/system-jz4740.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-jz4740.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
index c5f99aba23..68d4759f4d 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
@@ -262,9 +262,17 @@ void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc)
"$1", "LO", "HI", "STATUS", "EPC" };
int i;
+#ifdef HAVE_LCD_BITMAP
+#if LCD_DEPTH > 1
lcd_set_backdrop(NULL);
- lcd_clear_display();
+ lcd_set_drawmode(DRMODE_SOLID);
+ lcd_set_foreground(LCD_BLACK);
+ lcd_set_background(LCD_WHITE);
+#endif
lcd_setfont(FONT_SYSFIXED);
+ lcd_set_viewport(NULL);
+#endif
+ lcd_clear_display();
_backlight_on();
snprintf(buffer, sizeof(buffer), "0x%08x at 0x%08x", read_c0_badvaddr(), epc);