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/gui/statusbar-skinned.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/gui') diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c index fc9735d..c991d8e 100644 --- a/apps/gui/statusbar-skinned.c +++ b/apps/gui/statusbar-skinned.c @@ -170,9 +170,9 @@ void sb_skin_update(enum screen_type screen, bool force) if (lcd_active() || (i != SCREEN_MAIN)) #endif { - bool full_update = skin_do_full_update(CUSTOM_STATUSBAR, screen); - skin_update(CUSTOM_STATUSBAR, screen, force || - full_update ? SKIN_REFRESH_ALL : SKIN_REFRESH_NON_STATIC); + if (force) + skin_request_full_update(CUSTOM_STATUSBAR); + skin_update(CUSTOM_STATUSBAR, screen, SKIN_REFRESH_NON_STATIC); } next_update[i] = current_tick + update_delay; /* don't update too often */ } -- cgit v1.1