mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 13:45:10 -05:00
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]) {
|
if ( global_settings.font_file[0]) {
|
||||||
snprintf(buf, sizeof buf, FONT_DIR "/%s.fnt",
|
snprintf(buf, sizeof buf, FONT_DIR "/%s.fnt",
|
||||||
global_settings.font_file);
|
global_settings.font_file);
|
||||||
font_load(buf);
|
if (font_load(buf) == NULL)
|
||||||
|
font_reset();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
font_reset();
|
font_reset();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue