summaryrefslogtreecommitdiffstats
path: root/apps/gui/statusbar-skinned.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-20 23:15:17 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-20 23:15:17 +0000
commit8f11075f8556bfefd06da297e2eb014e45905abf (patch)
treeedae95b243b53e07298b56645ad8c06385b66f48 /apps/gui/statusbar-skinned.c
parent804e3aadaeb3e40bddfc20d184ae105bae2a70c4 (diff)
downloadrockbox-8f11075f8556bfefd06da297e2eb014e45905abf.tar.gz
rockbox-8f11075f8556bfefd06da297e2eb014e45905abf.tar.bz2
rockbox-8f11075f8556bfefd06da297e2eb014e45905abf.zip
No need to have this variable global anymore.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23305 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-rw-r--r--apps/gui/statusbar-skinned.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
index e28782d85a..7b2aae81f5 100644
--- a/apps/gui/statusbar-skinned.c
+++ b/apps/gui/statusbar-skinned.c
@@ -43,7 +43,6 @@ static struct wps_sync_data sb_skin_sync_data = { .do_full_update = false
/* initial setup of wps_data */
static void sb_skin_update(void*);
static bool loaded_ok[NB_SCREENS] = { false };
-static int skinbars = 0;
static int update_delay = DEFAULT_UPDATE_DELAY;
@@ -85,6 +84,7 @@ struct viewport *sb_skin_get_info_vp(enum screen_type screen)
inline bool sb_skin_get_state(enum screen_type screen)
{
+ int skinbars = sb_skin[screen].sync_data->statusbars;
return loaded_ok[screen] && (skinbars & VP_SB_ONSCREEN(screen));
}
@@ -103,7 +103,7 @@ static void do_update_callback(void *param)
void sb_skin_set_state(int state, enum screen_type screen)
{
sb_skin[screen].sync_data->do_full_update = true;
- skinbars = sb_skin[screen].sync_data->statusbars;
+ int skinbars = sb_skin[screen].sync_data->statusbars;
if (state)
{
skinbars |= VP_SB_ONSCREEN(screen);