summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/menu.c12
-rw-r--r--apps/tree.c6
-rw-r--r--apps/wps-display.c2
-rw-r--r--apps/wps.c8
4 files changed, 2 insertions, 26 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 1940c379bc..44510ebfc9 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -245,11 +245,6 @@ void menu_exit(int m)
245 245
246Menu menu_run(int m) 246Menu menu_run(int m)
247{ 247{
248#ifndef SIMULATOR
249#ifdef HAVE_LCD_BITMAP
250 bool laststate;
251#endif
252#endif
253 Menu result = MENU_OK; 248 Menu result = MENU_OK;
254 249
255 menu_draw(m); 250 menu_draw(m);
@@ -330,16 +325,11 @@ Menu menu_run(int m)
330 325
331#ifndef SIMULATOR 326#ifndef SIMULATOR
332 case SYS_USB_CONNECTED: 327 case SYS_USB_CONNECTED:
333#ifdef HAVE_LCD_BITMAP
334 laststate = statusbar(false);
335#endif
336 backlight_time(4); 328 backlight_time(4);
337 usb_acknowledge(SYS_USB_CONNECTED_ACK); 329 usb_acknowledge(SYS_USB_CONNECTED_ACK);
338 usb_wait_for_disconnect(&button_queue); 330 usb_wait_for_disconnect(&button_queue);
339 backlight_time(global_settings.backlight); 331 backlight_time(global_settings.backlight);
340#ifdef HAVE_LCD_BITMAP 332#ifdef HAVE_LCD_CHARCELLS
341 statusbar(laststate);
342#else
343 lcd_icon(ICON_PARAM, true); 333 lcd_icon(ICON_PARAM, true);
344#endif 334#endif
345 menu_draw(m); 335 menu_draw(m);
diff --git a/apps/tree.c b/apps/tree.c
index a7615b9738..1d615101fe 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -732,9 +732,6 @@ bool dirbrowse(char *root)
732 732
733#ifndef SIMULATOR 733#ifndef SIMULATOR
734 case SYS_USB_CONNECTED: { 734 case SYS_USB_CONNECTED: {
735#ifdef HAVE_LCD_BITMAP
736 bool laststate=statusbar(false);
737#endif
738 backlight_time(4); 735 backlight_time(4);
739 736
740 /* Tell the USB thread that we are safe */ 737 /* Tell the USB thread that we are safe */
@@ -753,9 +750,6 @@ bool dirbrowse(char *root)
753 dirlevel = 0; 750 dirlevel = 0;
754 dircursor = 0; 751 dircursor = 0;
755 start = 0; 752 start = 0;
756#ifdef HAVE_LCD_BITMAP
757 statusbar(laststate);
758#endif
759 } 753 }
760 break; 754 break;
761#endif 755#endif
diff --git a/apps/wps-display.c b/apps/wps-display.c
index 0f27570e23..c360b7cf70 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -526,7 +526,7 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, bool refresh_all)
526 format_display(buf, sizeof(buf), id3, format_lines[i], &flags); 526 format_display(buf, sizeof(buf), id3, format_lines[i], &flags);
527 dynamic_lines[i] = flags.dynamic; 527 dynamic_lines[i] = flags.dynamic;
528 528
529#ifdef HAVE_LCD_CHARCELLS 529#if defined(HAVE_LCD_CHARCELLS) && !defined(SIMULATOR)
530 if (flags.player_progress) 530 if (flags.player_progress)
531 draw_player_progress(id3, ff_rewind_count); 531 draw_player_progress(id3, ff_rewind_count);
532#endif 532#endif
diff --git a/apps/wps.c b/apps/wps.c
index 8576dbf973..6a672d1df3 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -166,10 +166,6 @@ void display_mute_text(bool muted)
166static void handle_usb(void) 166static void handle_usb(void)
167{ 167{
168#ifndef SIMULATOR 168#ifndef SIMULATOR
169#ifdef HAVE_LCD_BITMAP
170 bool laststate=statusbar(false);
171#endif
172
173 backlight_time(4); 169 backlight_time(4);
174 170
175 /* Tell the USB thread that we are safe */ 171 /* Tell the USB thread that we are safe */
@@ -180,10 +176,6 @@ static void handle_usb(void)
180 usb_wait_for_disconnect(&button_queue); 176 usb_wait_for_disconnect(&button_queue);
181 177
182 backlight_time(global_settings.backlight); 178 backlight_time(global_settings.backlight);
183
184#ifdef HAVE_LCD_BITMAP
185 statusbar(laststate);
186#endif
187#endif 179#endif
188} 180}
189 181