1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2010-05-25 04:00:20 +00:00
parent 112ad0ac42
commit 9fe7b6cd20

View file

@ -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;
}
}