diff --git a/apps/debug_menu.c b/apps/debug_menu.c index d8fe49e5ac..ca1085d67e 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -2739,7 +2739,7 @@ static int menu_action_callback(int btn, struct gui_synclist *lists) { if (btn == ACTION_STD_OK) { - char oldbars = viewportmanager_set_statusbar(0); + int oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL); menuitems[gui_synclist_get_sel_pos(lists)].function(); btn = ACTION_REDRAW; viewportmanager_set_statusbar(oldbars); diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 1d8d7255bf..7ba9862895 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -115,24 +115,25 @@ static void next_track(void) audio_next(); } -static char fix_wps_bars(void) +static int fix_wps_bars(void) { #ifdef HAVE_LCD_BITMAP int i; - char wpsbars = 0; + int wpsbars = VP_SB_HIDE_ALL; FOR_NB_SCREENS(i) { bool draw = global_settings.statusbar; if (gui_wps[i].data->wps_sb_tag) draw = gui_wps[i].data->show_sb_on_wps; if (draw) - wpsbars |= VP_IGNORE_SB_SETTING(i)|(1<get_name) diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 3f3729116b..dbf9cc4e73 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -35,7 +35,7 @@ #include "screen_access.h" #include "appevents.h" -static char statusbar_enabled = VP_ALLSCREENS; +static int statusbar_enabled = VP_SB_ALLSCREENS; int viewport_get_nb_lines(struct viewport *vp) { @@ -49,8 +49,9 @@ int viewport_get_nb_lines(struct viewport *vp) static bool showing_bars(enum screen_type screen) { - if (statusbar_enabled&(1<entry_point(parameter); diff --git a/apps/plugin.h b/apps/plugin.h index 05e4db00a9..2017bf3e5b 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -126,12 +126,12 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 140 +#define PLUGIN_API_VERSION 141 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 140 +#define PLUGIN_MIN_API_VERSION 141 /* plugin return codes */ enum plugin_status { @@ -312,7 +312,7 @@ struct plugin_api { int height); #endif void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen); - char (*viewportmanager_set_statusbar)(char enabled); + int (*viewportmanager_set_statusbar)(int enable_status); /* list */ void (*gui_synclist_init)(struct gui_synclist * lists, list_get_name callback_get_item_name, void * data, diff --git a/apps/plugins/lib/oldmenuapi.c b/apps/plugins/lib/oldmenuapi.c index 864291fd4d..f14edabd38 100644 --- a/apps/plugins/lib/oldmenuapi.c +++ b/apps/plugins/lib/oldmenuapi.c @@ -94,7 +94,7 @@ int menu_show(int m) bool exit = false; int key; - char bars = rb->viewportmanager_set_statusbar(VP_ALLSCREENS); + int bars = rb->viewportmanager_set_statusbar(VP_SB_ALLSCREENS); rb->gui_synclist_draw(&(menus[m].synclist)); while (!exit) { key = rb->get_action(CONTEXT_MAINMENU,HZ/2); diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index a5e093d541..02b1759a8a 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -298,7 +298,7 @@ int kbd_input(char* text, int buflen) int morse_tick = 0; char buf[2]; #endif - char oldbars = viewportmanager_set_statusbar(0); + char oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL); FOR_NB_SCREENS(l) { struct keyboard_parameters *pm = ¶m[l]; diff --git a/apps/root_menu.c b/apps/root_menu.c index 78f5d514b2..8c88375d1a 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -270,7 +270,7 @@ static int wpsscrn(void* param) show_remote_main_backdrop(); #endif /* always re-enable the statusbar after the WPS */ - viewportmanager_set_statusbar(VP_ALLSCREENS); + viewportmanager_set_statusbar(VP_SB_ALLSCREENS); return ret_val; } #if CONFIG_TUNER