Change 18 char limit to (LCD_WIDTH/SYSFONT_WIDTH) in panicf() (FS#9282)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18288 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6321262854
commit
f6224b7860
1 changed files with 5 additions and 4 deletions
|
@ -69,11 +69,12 @@ void panicf( const char *fmt, ...)
|
||||||
{
|
{
|
||||||
/* wrap panic line */
|
/* wrap panic line */
|
||||||
int i, y=1, len = strlen(panic_buf);
|
int i, y=1, len = strlen(panic_buf);
|
||||||
for (i=0; i<len; i+=18) {
|
#define STEP (LCD_WIDTH/SYSFONT_WIDTH)
|
||||||
unsigned char c = panic_buf[i+18];
|
for (i=0; i<len; i+=STEP) {
|
||||||
panic_buf[i+18] = 0;
|
unsigned char c = panic_buf[i+STEP];
|
||||||
|
panic_buf[i+STEP] = 0;
|
||||||
lcd_puts(0, y++, (unsigned char *)panic_buf+i);
|
lcd_puts(0, y++, (unsigned char *)panic_buf+i);
|
||||||
panic_buf[i+18] = c;
|
panic_buf[i+STEP] = c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue