diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2014-01-15 18:57:46 +0100 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-15 18:57:46 +0100 |
| commit | 2eb873cea62805f232e4633c73e67c4e2b116cd4 (patch) | |
| tree | f9cd0729fe5406e96aa11dd279a89294beeaecb3 /apps/misc.c | |
| parent | 644d9eab6c55c736e72afdb4a8f3432a07d8fc11 (diff) | |
| download | rockbox-2eb873cea62805f232e4633c73e67c4e2b116cd4.zip rockbox-2eb873cea62805f232e4633c73e67c4e2b116cd4.tar.gz rockbox-2eb873cea62805f232e4633c73e67c4e2b116cd4.tar.bz2 rockbox-2eb873cea62805f232e4633c73e67c4e2b116cd4.tar.xz | |
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/misc.c')
| -rw-r--r-- | apps/misc.c | 12 |
1 files changed, 10 insertions, 2 deletions
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) { |