diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/statusbar.c | 12 | ||||
-rw-r--r-- | apps/gui/statusbar.h | 3 |
2 files changed, 1 insertions, 14 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) |