summaryrefslogtreecommitdiffstats
path: root/apps/gui/wps.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-03 15:06:30 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-03 15:06:30 +0000
commit3b75c86d74937a6bffcb371bb08bdfb182db9d2b (patch)
tree3be12a89b7a5377a31a46b48e672e08af36ac949 /apps/gui/wps.h
parent0dc5cc8002e3d30fc7ae7ddf7f33a56c8b136e7e (diff)
downloadrockbox-3b75c86d74937a6bffcb371bb08bdfb182db9d2b.tar.gz
rockbox-3b75c86d74937a6bffcb371bb08bdfb182db9d2b.tar.bz2
rockbox-3b75c86d74937a6bffcb371bb08bdfb182db9d2b.zip
A bit mroe wps/skin engine cleanup so that the structs the wps uses can be static:
-add wrappers wps_data_load() and wps_data_init() so that other code doesn't need the structs for that -change (and rename) gui_sync_wps_uses_albumart() to take points to be filled as parameter to get the AA size of a wps git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22139 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps.h')
-rw-r--r--apps/gui/wps.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/gui/wps.h b/apps/gui/wps.h
index 90614cb65b..b8cb7d2ffa 100644
--- a/apps/gui/wps.h
+++ b/apps/gui/wps.h
@@ -34,4 +34,17 @@ bool ffwd_rew(int button);
void display_keylock_text(bool locked);
bool is_wps_fading(void);
+
+/* wrapper for the wps to load the skin (.wps/.rwps) files */
+void wps_data_load(enum screen_type, const char *, bool);
+void wps_data_init(enum screen_type);
+
+#ifdef HAVE_ALBUMART
+/*
+ * Returns true if at least one of the gui_wps screens has an album art
+ * tag in its wps structure and writes the width and height into the passed
+ * pointers
+ */
+bool wps_uses_albumart(int*, int*);
+#endif
#endif