summaryrefslogtreecommitdiffstats
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-03-29 08:11:52 +0200
committerThomas Martitz <kugel@rockbox.org>2012-03-30 11:23:07 +0200
commit148a80e1d110047c3d3fb3c819cde080094341da (patch)
tree07b391e63c18155d22dccb8f1a0441f36e73ebc6 /firmware/panic.c
parent10d8717e9460eca1fe76e4897f94fb544f25e197 (diff)
downloadrockbox-148a80e1d110047c3d3fb3c819cde080094341da.tar.gz
rockbox-148a80e1d110047c3d3fb3c819cde080094341da.tar.bz2
rockbox-148a80e1d110047c3d3fb3c819cde080094341da.zip
panicf(): fix wrong font and colors being displayed.
Change-Id: I57680d5857b577d731b5703e209ccc6e9511ef17
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index cdefc5a0b8..0d49847a19 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -82,6 +82,8 @@ void panicf( const char *fmt, ...)
vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap );
va_end( ap );
+ lcd_set_viewport(NULL);
+
#ifdef HAVE_LCD_CHARCELLS
lcd_double_height(false);
lcd_puts(0, 0, "*PANIC*");
@@ -98,7 +100,6 @@ void panicf( const char *fmt, ...)
lcd_clear_display();
lcd_setfont(FONT_SYSFIXED);
- lcd_set_viewport(NULL);
lcd_puts(1, y++, (unsigned char *)"*PANIC*");
{
/* wrap panic line */