summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_display.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-03-07 12:45:45 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-03-07 12:45:45 +0000
commit343001b5f86f61a48b8520c9a1eb2790f50a8b27 (patch)
treebc1cf0e7451adb10668e9c1cff90e76cbbf55e3d /apps/gui/skin_engine/skin_display.c
parent4cc2cc430c026ce59d089f76c678202d977bad37 (diff)
downloadrockbox-343001b5f86f61a48b8520c9a1eb2790f50a8b27.tar.gz
rockbox-343001b5f86f61a48b8520c9a1eb2790f50a8b27.zip
Merge a bunch of code which is 99% identical so it makes it easier to add more of these later
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29535 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r--apps/gui/skin_engine/skin_display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index 5d90e14a0e..e5e6389b87 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -100,8 +100,9 @@ void skin_statusbar_changed(struct gui_wps *skin)
struct wps_data *data = skin->data;
const struct screen *display = skin->display;
const int screen = display->screen_type;
+ struct skin_viewport *svp = skin_find_item(VP_DEFAULT_LABEL, SKIN_FIND_VP, data);
- struct viewport *vp = &find_viewport(VP_DEFAULT_LABEL, false, data)->vp;
+ struct viewport *vp = &svp->vp;
viewport_set_defaults(vp, screen);
if (data->wps_sb_tag)