forked from len0rd/rockbox
Fix for uninitialized variable, caused crash when viewing a file that started with whitespace. Fixes FS#5658 with solution given by bugsubmitter (Mark Arigo). Viewer code still needs more work but at least won't crash on this anymore.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10213 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
55156d9969
commit
2076363fda
1 changed files with 1 additions and 1 deletions
|
@ -942,7 +942,7 @@ static bool viewer_init(void)
|
|||
pf = rb->font_get(FONT_UI);
|
||||
|
||||
display_lines = LCD_HEIGHT / pf->height;
|
||||
display_columns = LCD_WIDTH;
|
||||
draw_columns = display_columns = LCD_WIDTH;
|
||||
#else
|
||||
/* REAL fixed pitch :) all chars use up 1 cell */
|
||||
display_lines = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue