summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-15 18:57:46 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-15 18:57:46 +0100
commit2eb873cea62805f232e4633c73e67c4e2b116cd4 (patch)
treef9cd0729fe5406e96aa11dd279a89294beeaecb3 /apps/gui
parent644d9eab6c55c736e72afdb4a8f3432a07d8fc11 (diff)
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
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/statusbar-skinned.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
index fc9735da21..c991d8ea40 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 */
}