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:
Nils Wallménius 2008-12-14 10:16:07 +00:00
parent 0fab3e36f3
commit a89837ac61

View file

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