diff options
Diffstat (limited to 'apps/gui/statusbar.c')
-rw-r--r-- | apps/gui/statusbar.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index 1a724406ef..7a361e58ed 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c | |||
@@ -827,13 +827,7 @@ void gui_statusbar_changed( enum screen_type screen, | |||
827 | enum statusbar_values old) | 827 | enum statusbar_values old) |
828 | { | 828 | { |
829 | /* clear and update the statusbar area to remove old parts */ | 829 | /* clear and update the statusbar area to remove old parts */ |
830 | enum statusbar_values bar; | 830 | enum statusbar_values bar = statusbar_position(screen); |
831 | #ifdef HAVE_REMOTE_LCD | ||
832 | if (screen == SCREEN_REMOTE) | ||
833 | bar = global_settings.remote_statusbar; | ||
834 | else | ||
835 | #endif | ||
836 | bar = global_settings.statusbar; | ||
837 | 831 | ||
838 | struct screen *display = &screens[screen]; | 832 | struct screen *display = &screens[screen]; |
839 | struct viewport vp; | 833 | struct viewport vp; |
@@ -850,7 +844,7 @@ void gui_statusbar_changed( enum screen_type screen, | |||
850 | #endif | 844 | #endif |
851 | 845 | ||
852 | #ifdef HAVE_REMOTE_LCD | 846 | #ifdef HAVE_REMOTE_LCD |
853 | int statusbar_position(int screen) | 847 | enum statusbar_values statusbar_position(int screen) |
854 | { | 848 | { |
855 | if (screen == SCREEN_REMOTE) | 849 | if (screen == SCREEN_REMOTE) |
856 | return global_settings.remote_statusbar; | 850 | return global_settings.remote_statusbar; |