From 2eb873cea62805f232e4633c73e67c4e2b116cd4 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 15 Jan 2014 18:57:46 +0100 Subject: skins: Update SBS when changing activities. When changing activities (those that are indicated via %cs skin tag), the sbs needs to be updated, so that the UI viewport can be applied before that activity draws its UI. Fixes FS#12804. I hope this commit doesn't have bad side effects. Change-Id: If45654e356749f5f27991430dbd1da6f23e6f802 --- apps/misc.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index fa33bb5..d63676e 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -1214,18 +1214,26 @@ static int current_activity_top = 0; void push_current_activity(enum current_activity screen) { current_activity[current_activity_top++] = screen; -#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__) FOR_NB_SCREENS(i) + { +#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__) skinlist_set_cfg(i, NULL); #endif + skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL); + } } + void pop_current_activity(void) { current_activity_top--; -#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__) FOR_NB_SCREENS(i) + { +#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__) skinlist_set_cfg(i, NULL); #endif + skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL); + } + } enum current_activity get_current_activity(void) { -- cgit v1.1