diff options
Diffstat (limited to 'apps/wps.c')
-rw-r--r-- | apps/wps.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/wps.c b/apps/wps.c index 855220bc22..49e9345912 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -43,13 +43,10 @@ void wps_show_play(char* filename) | |||
43 | mp3entry mp3; | 43 | mp3entry mp3; |
44 | mp3info(&mp3,filename); | 44 | mp3info(&mp3,filename); |
45 | 45 | ||
46 | lcd_clear_display(); | 46 | switch ( global_settings.wps_display ) { |
47 | |||
48 | switch (global_settings.wps_display) | ||
49 | { | ||
50 | case PLAY_DISPLAY_TRACK_TITLE: | 47 | case PLAY_DISPLAY_TRACK_TITLE: |
51 | { | 48 | { |
52 | int ch = '/'; | 49 | char ch = '/'; |
53 | char* end; | 50 | char* end; |
54 | char* szTok; | 51 | char* szTok; |
55 | char* szDelimit; | 52 | char* szDelimit; |
@@ -72,7 +69,7 @@ void wps_show_play(char* filename) | |||
72 | } | 69 | } |
73 | case PLAY_DISPLAY_FILENAME_SCROLL: | 70 | case PLAY_DISPLAY_FILENAME_SCROLL: |
74 | { | 71 | { |
75 | int ch = '/'; | 72 | char ch = '/'; |
76 | char* szLast = strrchr(filename, ch); | 73 | char* szLast = strrchr(filename, ch); |
77 | 74 | ||
78 | if (szLast) | 75 | if (szLast) |
@@ -110,15 +107,13 @@ void wps_show_play(char* filename) | |||
110 | } | 107 | } |
111 | 108 | ||
112 | } | 109 | } |
113 | |||
114 | lcd_update(); | ||
115 | } | 110 | } |
116 | 111 | ||
117 | /* experimental idea still being sorted out, but want it in the the code tree still so that important playlist info is not forgotten. */ | 112 | /* experimental idea still being sorted out, but want it in the the code tree still so that important playlist info is not forgotten. */ |
118 | #if 0 | 113 | #if 0 |
119 | void wps_show_playlist(char* current, playlist_info_t *list) | 114 | void wps_show_playlist(char* current, playlist_info_t *list) |
120 | { | 115 | { |
121 | int ch = '/'; | 116 | char ch = '/'; |
122 | char* szLast = strrchr(current, ch); | 117 | char* szLast = strrchr(current, ch); |
123 | char buf[16]; | 118 | char buf[16]; |
124 | 119 | ||