summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_viewer/tv_settings.c')
-rw-r--r--apps/plugins/text_viewer/tv_settings.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/plugins/text_viewer/tv_settings.c b/apps/plugins/text_viewer/tv_settings.c
index dfd47ec7a3..6f4e5f2ff8 100644
--- a/apps/plugins/text_viewer/tv_settings.c
+++ b/apps/plugins/text_viewer/tv_settings.c
@@ -219,11 +219,9 @@ static bool tv_read_preferences(int pfd, int version, struct tv_preferences *pre
219 if (version > 6) 219 if (version > 6)
220 prefs->night_mode = (*p++ != 0); 220 prefs->night_mode = (*p++ != 0);
221 221
222#ifdef HAVE_LCD_BITMAP
223 rb->strlcpy(prefs->font_name, buf + read_size - MAX_PATH, MAX_PATH); 222 rb->strlcpy(prefs->font_name, buf + read_size - MAX_PATH, MAX_PATH);
224 223
225 prefs->font_id = rb->global_status->font_id[SCREEN_MAIN]; 224 prefs->font_id = rb->global_status->font_id[SCREEN_MAIN];
226#endif
227 225
228 return true; 226 return true;
229} 227}
@@ -253,9 +251,7 @@ static void tv_serialize_preferences(unsigned char *buf, const struct tv_prefere
253 *p++ = prefs->statusbar; 251 *p++ = prefs->statusbar;
254 *p++ = prefs->night_mode; 252 *p++ = prefs->night_mode;
255 253
256#ifdef HAVE_LCD_BITMAP
257 rb->strlcpy(buf + 28, prefs->font_name, MAX_PATH); 254 rb->strlcpy(buf + 28, prefs->font_name, MAX_PATH);
258#endif
259} 255}
260 256
261static bool tv_write_preferences(int pfd, const struct tv_preferences *prefs) 257static bool tv_write_preferences(int pfd, const struct tv_preferences *prefs)