FS#6397 - Selecting a big font while "show path" is enabled craches in the font browser.

Attached to Project: Rockbox
Opened by Nils Wallménius (nls) - Wednesday, 29 November 2006, 17:25 GMT
Task Type Bugs
Category Font/charset
Status Closed
Assigned To No-one
Operating System Iriver H300 series
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Steps to reproduce.
0. Reset settings (optional)
1. Set show path to current directory
2. select ter-32n from the font browser in the menu
3. press left to back out from the font browser

if "show path" is off it works fine.
This task depends upon

Closed by  Peter D'Hoye (petur)
Saturday, 09 December 2006, 10:02 GMT
Reason for closing:  Accepted
Comment by Mark Arigo (lowlight) - Wednesday, 29 November 2006, 18:45 GMT
This is a bug in gui_list_draw. If list titles are displayed and the screen can only display one line, it deadlocks because it can't draw the list. You'll see it on targets small screens including lcd remotes regardless of whether the remote is plugged in.

I've attached a quick patch.
Comment by Nils Wallménius (nls) - Wednesday, 29 November 2006, 19:05 GMT
The patch fixes the issue for me.
Comment by Peter D'Hoye (petur) - Friday, 08 December 2006, 22:39 GMT
I've taken the liberty of moving the define into a function so we don't waste bytes.
Also did some code policing. Tested and fixes the issue too.