summaryrefslogtreecommitdiffstats
path: root/apps/gui/statusbar-skinned.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-05-25 04:00:20 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-05-25 04:00:20 +0000
commit9fe7b6cd2045a5942a3744e246bead6897ef4886 (patch)
tree52ec97ad41dfc216c32b91b9d78ff1eef45b05f6 /apps/gui/statusbar-skinned.c
parent112ad0ac421f47d819af11ae18b2218b508737bf (diff)
downloadrockbox-9fe7b6cd2045a5942a3744e246bead6897ef4886.tar.gz
rockbox-9fe7b6cd2045a5942a3744e246bead6897ef4886.tar.bz2
rockbox-9fe7b6cd2045a5942a3744e246bead6897ef4886.zip
fix remote statusbar not being updated if it is enabled on both displays
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26275 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-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 af02b9b54d..a53555a291 100644
--- a/apps/gui/statusbar-skinned.c
+++ b/apps/gui/statusbar-skinned.c
@@ -147,9 +147,9 @@ bool sb_set_backdrop(enum screen_type screen, char* filename)
#endif
void sb_skin_update(enum screen_type screen, bool force)
{
- static long next_update = 0;
+ static long next_update[NB_SCREENS] = {0};
int i = screen;
- if (TIME_AFTER(current_tick, next_update) || force)
+ if (TIME_AFTER(current_tick, next_update[i]) || force)
{
#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
/* currently, all remotes are readable without backlight
@@ -158,7 +158,7 @@ void sb_skin_update(enum screen_type screen, bool force)
#endif
skin_update(&sb_skin[i], force?
WPS_REFRESH_ALL : WPS_REFRESH_NON_STATIC);
- next_update = current_tick + update_delay; /* don't update too often */
+ next_update[i] = current_tick + update_delay; /* don't update too often */
sb_skin[SCREEN_MAIN].sync_data->do_full_update = false;
}
}