diff options
Diffstat (limited to 'apps/plugins/lrcplayer.c')
-rw-r--r-- | apps/plugins/lrcplayer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c index dce5f4ff02..fdd54b6366 100644 --- a/apps/plugins/lrcplayer.c +++ b/apps/plugins/lrcplayer.c | |||
@@ -75,9 +75,7 @@ struct preferences { | |||
75 | bool wrap; | 75 | bool wrap; |
76 | bool wipe; | 76 | bool wipe; |
77 | bool active_one_line; | 77 | bool active_one_line; |
78 | enum { | 78 | int align; /* 0: left, 1: center, 2: right */ |
79 | ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, | ||
80 | } align; | ||
81 | bool statusbar_on; | 79 | bool statusbar_on; |
82 | bool display_title; | 80 | bool display_title; |
83 | #endif | 81 | #endif |
@@ -2225,7 +2223,7 @@ static void load_or_save_settings(bool save) | |||
2225 | { TYPE_BOOL, 0, 1, { .bool_p = &prefs.wipe }, "wipe", NULL }, | 2223 | { TYPE_BOOL, 0, 1, { .bool_p = &prefs.wipe }, "wipe", NULL }, |
2226 | { TYPE_BOOL, 0, 1, { .bool_p = &prefs.active_one_line }, | 2224 | { TYPE_BOOL, 0, 1, { .bool_p = &prefs.active_one_line }, |
2227 | "active one line", NULL }, | 2225 | "active one line", NULL }, |
2228 | { TYPE_INT, 0, 2, { .int_p = (int *) &prefs.align }, "align", NULL }, | 2226 | { TYPE_INT, 0, 2, { .int_p = &prefs.align }, "align", NULL }, |
2229 | { TYPE_BOOL, 0, 1, { .bool_p = &prefs.statusbar_on }, | 2227 | { TYPE_BOOL, 0, 1, { .bool_p = &prefs.statusbar_on }, |
2230 | "statusbar on", NULL }, | 2228 | "statusbar on", NULL }, |
2231 | { TYPE_BOOL, 0, 1, { .bool_p = &prefs.display_title }, | 2229 | { TYPE_BOOL, 0, 1, { .bool_p = &prefs.display_title }, |
@@ -2256,7 +2254,7 @@ static void load_or_save_settings(bool save) | |||
2256 | prefs.wrap = true; | 2254 | prefs.wrap = true; |
2257 | prefs.wipe = true; | 2255 | prefs.wipe = true; |
2258 | prefs.active_one_line = false; | 2256 | prefs.active_one_line = false; |
2259 | prefs.align = ALIGN_CENTER; | 2257 | prefs.align = 1; /* center */ |
2260 | prefs.statusbar_on = false; | 2258 | prefs.statusbar_on = false; |
2261 | prefs.display_title = true; | 2259 | prefs.display_title = true; |
2262 | #endif | 2260 | #endif |
@@ -2848,6 +2846,7 @@ static int lrc_main(void) | |||
2848 | { | 2846 | { |
2849 | /* current.loaded_lrc is false after changing encode setting */ | 2847 | /* current.loaded_lrc is false after changing encode setting */ |
2850 | update_display_state = true; | 2848 | update_display_state = true; |
2849 | display_state(); | ||
2851 | load_lrc_file(); | 2850 | load_lrc_file(); |
2852 | } | 2851 | } |
2853 | if (update_display_state) | 2852 | if (update_display_state) |