diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/statusbar-skinned.c | 6 |
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) | |||
147 | #endif | 147 | #endif |
148 | void sb_skin_update(enum screen_type screen, bool force) | 148 | void sb_skin_update(enum screen_type screen, bool force) |
149 | { | 149 | { |
150 | static long next_update = 0; | 150 | static long next_update[NB_SCREENS] = {0}; |
151 | int i = screen; | 151 | int i = screen; |
152 | if (TIME_AFTER(current_tick, next_update) || force) | 152 | if (TIME_AFTER(current_tick, next_update[i]) || force) |
153 | { | 153 | { |
154 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 154 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
155 | /* currently, all remotes are readable without backlight | 155 | /* currently, all remotes are readable without backlight |
@@ -158,7 +158,7 @@ void sb_skin_update(enum screen_type screen, bool force) | |||
158 | #endif | 158 | #endif |
159 | skin_update(&sb_skin[i], force? | 159 | skin_update(&sb_skin[i], force? |
160 | WPS_REFRESH_ALL : WPS_REFRESH_NON_STATIC); | 160 | WPS_REFRESH_ALL : WPS_REFRESH_NON_STATIC); |
161 | next_update = current_tick + update_delay; /* don't update too often */ | 161 | next_update[i] = current_tick + update_delay; /* don't update too often */ |
162 | sb_skin[SCREEN_MAIN].sync_data->do_full_update = false; | 162 | sb_skin[SCREEN_MAIN].sync_data->do_full_update = false; |
163 | } | 163 | } |
164 | } | 164 | } |