forked from len0rd/rockbox
Properly handle empty and '-' font settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24942 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3f8d4a5a0f
commit
ba15f45f6e
1 changed files with 4 additions and 2 deletions
|
|
@ -835,7 +835,8 @@ void settings_apply(void)
|
|||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
/* fonts need to be loaded before the WPS */
|
||||
if ( global_settings.font_file[0]) {
|
||||
if (global_settings.font_file[0]
|
||||
&& global_settings.font_file[0] != '-') {
|
||||
snprintf(buf, sizeof buf, FONT_DIR "/%s.fnt",
|
||||
global_settings.font_file);
|
||||
if (font_load(NULL, buf) < 0)
|
||||
|
|
@ -844,7 +845,8 @@ void settings_apply(void)
|
|||
else
|
||||
font_reset(NULL);
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
if ( global_settings.remote_font_file[0]) {
|
||||
if ( global_settings.remote_font_file[0]
|
||||
&& global_settings.remote_font_file[0] != '-') {
|
||||
snprintf(buf, sizeof buf, FONT_DIR "/%s.fnt",
|
||||
global_settings.remote_font_file);
|
||||
if (font_load_remoteui(buf) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue