Accept patch in FS#9637 by Keith Perri, fixing a crash when loading a cfg which specified a non existant font.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19434 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0fab3e36f3
commit
a89837ac61
1 changed files with 2 additions and 1 deletions
|
@ -820,7 +820,8 @@ void settings_apply(bool read_disk)
|
|||
if ( global_settings.font_file[0]) {
|
||||
snprintf(buf, sizeof buf, FONT_DIR "/%s.fnt",
|
||||
global_settings.font_file);
|
||||
font_load(buf);
|
||||
if (font_load(buf) == NULL)
|
||||
font_reset();
|
||||
}
|
||||
else
|
||||
font_reset();
|
||||
|
|
Loading…
Reference in a new issue