summaryrefslogtreecommitdiffstats
path: root/apps/gui/statusbar-skinned.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-08-02 14:12:44 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-08-02 14:12:44 +0000
commit75556fd57ff70be9a9cbc183cbacb71db520291d (patch)
treeaa5e8db09ed267bc2e6351d7dc4778d4dae25f2a /apps/gui/statusbar-skinned.c
parentee4f8a9a6bc313cd878f84a6c9832b6094685460 (diff)
downloadrockbox-75556fd57ff70be9a9cbc183cbacb71db520291d.tar.gz
rockbox-75556fd57ff70be9a9cbc183cbacb71db520291d.tar.bz2
rockbox-75556fd57ff70be9a9cbc183cbacb71db520291d.zip
Fix FS#10926 - h300 wps wouldnt be updated correctly when the backlight turns off because the remote is being naughty
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27666 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-rw-r--r--apps/gui/statusbar-skinned.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
index 81eb92923d..6a341d0e55 100644
--- a/apps/gui/statusbar-skinned.c
+++ b/apps/gui/statusbar-skinned.c
@@ -194,10 +194,22 @@ void sb_skin_update(enum screen_type screen, bool force)
* so still update those */
if (lcd_active() || (i != SCREEN_MAIN))
#endif
- skin_update(&sb_skin[i], force?
+ {
+ bool full_update = false;
+#if NB_SCREENS > 1
+ if (i==SCREEN_MAIN && sb_skin[i].sync_data->do_full_update)
+ {
+ full_update = true;
+ sb_skin[i].sync_data->do_full_update = false;
+ }
+#else
+ full_update = sb_skin[i].sync_data->do_full_update;
+ sb_skin[i].sync_data->do_full_update = false;
+#endif
+ skin_update(&sb_skin[i], force || full_update?
SKIN_REFRESH_ALL : SKIN_REFRESH_NON_STATIC);
+ }
next_update[i] = current_tick + update_delay; /* don't update too often */
- sb_skin[SCREEN_MAIN].sync_data->do_full_update = false;
}
}