diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/statusbar.c | 12 | ||||
-rw-r--r-- | apps/gui/statusbar.h | 3 | ||||
-rw-r--r-- | apps/onplay.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 1 |
4 files changed, 1 insertions, 17 deletions
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index a961d191b2..74da14bd3f 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c | |||
@@ -725,18 +725,6 @@ void gui_syncstatusbar_init(struct gui_syncstatusbar * bars) | |||
725 | } | 725 | } |
726 | } | 726 | } |
727 | 727 | ||
728 | void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, | ||
729 | bool force_redraw) | ||
730 | { | ||
731 | if(!global_settings.statusbar) | ||
732 | return; | ||
733 | struct viewport viewport; | ||
734 | FOR_NB_SCREENS(i) { | ||
735 | GET_RECT(viewport,statusbar_position(i),&screens[i]); | ||
736 | gui_statusbar_draw( &(bars->statusbars[i]), force_redraw, &viewport ); | ||
737 | } | ||
738 | } | ||
739 | |||
740 | 728 | ||
741 | #ifdef HAVE_REMOTE_LCD | 729 | #ifdef HAVE_REMOTE_LCD |
742 | enum statusbar_values statusbar_position(int screen) | 730 | enum statusbar_values statusbar_position(int screen) |
diff --git a/apps/gui/statusbar.h b/apps/gui/statusbar.h index a676c7b143..c62434155d 100644 --- a/apps/gui/statusbar.h +++ b/apps/gui/statusbar.h | |||
@@ -99,8 +99,7 @@ struct gui_syncstatusbar | |||
99 | }; | 99 | }; |
100 | 100 | ||
101 | extern void gui_syncstatusbar_init(struct gui_syncstatusbar * bars) INIT_ATTR; | 101 | extern void gui_syncstatusbar_init(struct gui_syncstatusbar * bars) INIT_ATTR; |
102 | extern void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, | 102 | |
103 | bool force_redraw); | ||
104 | #if !defined(HAVE_REMOTE_LCD) || defined(__PCTOOL__) | 103 | #if !defined(HAVE_REMOTE_LCD) || defined(__PCTOOL__) |
105 | #include "settings.h" | 104 | #include "settings.h" |
106 | #define statusbar_position(a) ((enum statusbar_values)global_settings.statusbar) | 105 | #define statusbar_position(a) ((enum statusbar_values)global_settings.statusbar) |
diff --git a/apps/onplay.c b/apps/onplay.c index 8f2c3c4f4a..c3e1ebec54 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -425,10 +425,8 @@ static bool playing_time(void) | |||
425 | gui_synclist_set_voice_callback(&pt_lists, playing_time_speak_info); | 425 | gui_synclist_set_voice_callback(&pt_lists, playing_time_speak_info); |
426 | gui_synclist_set_nb_items(&pt_lists, 8); | 426 | gui_synclist_set_nb_items(&pt_lists, 8); |
427 | gui_synclist_draw(&pt_lists); | 427 | gui_synclist_draw(&pt_lists); |
428 | /* gui_syncstatusbar_draw(&statusbars, true); */ | ||
429 | gui_synclist_speak_item(&pt_lists); | 428 | gui_synclist_speak_item(&pt_lists); |
430 | while (true) { | 429 | while (true) { |
431 | /* gui_syncstatusbar_draw(&statusbars, false); */ | ||
432 | if (list_do_action(CONTEXT_LIST, HZ/2, | 430 | if (list_do_action(CONTEXT_LIST, HZ/2, |
433 | &pt_lists, &key, LIST_WRAP_UNLESS_HELD) == 0 | 431 | &pt_lists, &key, LIST_WRAP_UNLESS_HELD) == 0 |
434 | && key!=ACTION_NONE && key!=ACTION_UNKNOWN) | 432 | && key!=ACTION_NONE && key!=ACTION_UNKNOWN) |
diff --git a/apps/plugin.h b/apps/plugin.h index 7306e3fcba..38d44530b0 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -94,7 +94,6 @@ int plugin_open(const char *plugin, const char *parameter); | |||
94 | #include "scrollbar.h" | 94 | #include "scrollbar.h" |
95 | #include "jpeg_load.h" | 95 | #include "jpeg_load.h" |
96 | #include "../recorder/bmp.h" | 96 | #include "../recorder/bmp.h" |
97 | #include "statusbar.h" | ||
98 | #include "menu.h" | 97 | #include "menu.h" |
99 | #include "rbunicode.h" | 98 | #include "rbunicode.h" |
100 | #include "list.h" | 99 | #include "list.h" |