From 9fe7b6cd2045a5942a3744e246bead6897ef4886 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 25 May 2010 04:00:20 +0000 Subject: [PATCH] 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 --- apps/gui/statusbar-skinned.c | 6 +++--- 1 file 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; } }