diff options
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r-- | apps/gui/gwps.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 64b8939ee9..95cca5c117 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c | |||
@@ -245,8 +245,8 @@ static void gwps_fix_statusbars(void) | |||
245 | bool draw = false; | 245 | bool draw = false; |
246 | if (gui_wps[i].data->wps_sb_tag) | 246 | if (gui_wps[i].data->wps_sb_tag) |
247 | draw = gui_wps[i].data->show_sb_on_wps; | 247 | draw = gui_wps[i].data->show_sb_on_wps; |
248 | else if (global_settings.statusbar) | 248 | else if (statusbar_position(i) != STATUSBAR_OFF) |
249 | wpsbars |= VP_SB_ONSCREEN(i); | 249 | draw = true; |
250 | if (draw) | 250 | if (draw) |
251 | wpsbars |= (VP_SB_ONSCREEN(i) | VP_SB_IGNORE_SETTING(i)); | 251 | wpsbars |= (VP_SB_ONSCREEN(i) | VP_SB_IGNORE_SETTING(i)); |
252 | } | 252 | } |
@@ -937,13 +937,7 @@ static void statusbar_toggle_handler(void *data) | |||
937 | } | 937 | } |
938 | else | 938 | else |
939 | { | 939 | { |
940 | bool bar_at_top = true; | 940 | bool bar_at_top = statusbar_position(i) != STATUSBAR_BOTTOM; |
941 | #ifdef HAVE_REMOTE_LCD | ||
942 | if (i == SCREEN_REMOTE) | ||
943 | bar_at_top = global_settings.remote_statusbar != STATUSBAR_BOTTOM; | ||
944 | else | ||
945 | #endif | ||
946 | bar_at_top = global_settings.statusbar != STATUSBAR_BOTTOM; | ||
947 | vp->y = bar_at_top?STATUSBAR_HEIGHT:0; | 941 | vp->y = bar_at_top?STATUSBAR_HEIGHT:0; |
948 | vp->height = screens[i].lcdheight - STATUSBAR_HEIGHT; | 942 | vp->height = screens[i].lcdheight - STATUSBAR_HEIGHT; |
949 | } | 943 | } |