summaryrefslogtreecommitdiffstats
path: root/apps/gui/statusbar-skinned.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-11-09 06:17:56 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-11-09 06:17:56 +0000
commit10fcb6b183dbb050f3c20eb1d17fa9ea72ded6e4 (patch)
tree775b4b1e135cdd6b9260c0ccd499ff19e88eaa64 /apps/gui/statusbar-skinned.c
parentd0ac045f44756f6daf8e3f532ea226bb5f8cb51b (diff)
downloadrockbox-10fcb6b183dbb050f3c20eb1d17fa9ea72ded6e4.tar.gz
rockbox-10fcb6b183dbb050f3c20eb1d17fa9ea72ded6e4.tar.bz2
rockbox-10fcb6b183dbb050f3c20eb1d17fa9ea72ded6e4.zip
fix segfault on remote targets where no sbs is loaded for the remote
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23580 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-rw-r--r--apps/gui/statusbar-skinned.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
index 2bef616524..436cc86ea1 100644
--- a/apps/gui/statusbar-skinned.c
+++ b/apps/gui/statusbar-skinned.c
@@ -114,7 +114,7 @@ inline bool sb_skin_get_state(enum screen_type screen)
case STATUSBAR_TOP:
case STATUSBAR_BOTTOM:
case STATUSBAR_OFF:
- return (VP_SB_ONSCREEN(screen));
+ return (skinbars&VP_SB_ONSCREEN(screen));
}
return false; /* Should never actually get here */
}