1
0
Fork 0
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:
Peter D'Hoye 2006-07-15 13:53:18 +00:00
parent 55156d9969
commit 2076363fda

View file

@ -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;