summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/wps_internals.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-02-27 16:51:51 +0000
committerThomas Martitz <kugel@rockbox.org>2010-02-27 16:51:51 +0000
commit226308663f3e7d5bd26003e7f122e1494bfb4e22 (patch)
tree2938f64deb680be07a11490614d426dc686f46da /apps/gui/skin_engine/wps_internals.h
parentba15f45f6e7f1b00cceb38ba8cef5451ee8b427b (diff)
downloadrockbox-226308663f3e7d5bd26003e7f122e1494bfb4e22.tar.gz
rockbox-226308663f3e7d5bd26003e7f122e1494bfb4e22.zip
Store the list of fonts in a linked list instead of in a static array (together with the base filename) and load all fonts in a second step. This aids debugging missing fonts, skips fonts that are not used in viewports, and is preparation of a resizable (on boot) skin buffer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24943 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r--apps/gui/skin_engine/wps_internals.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h
index f6c7463804..aa99804fd4 100644
--- a/apps/gui/skin_engine/wps_internals.h
+++ b/apps/gui/skin_engine/wps_internals.h
@@ -264,6 +264,12 @@ struct skin_albumart {
264}; 264};
265#endif 265#endif
266 266
267struct skin_font {
268 int id; /* the id used in the %V tags */
269 int font_id; /* the id returned by font_load */
270 char *name; /* filename without path and extension */
271};
272
267/* wps_data 273/* wps_data
268 this struct holds all necessary data which describes the 274 this struct holds all necessary data which describes the
269 viewable content of a wps */ 275 viewable content of a wps */
@@ -272,6 +278,7 @@ struct wps_data
272#ifdef HAVE_LCD_BITMAP 278#ifdef HAVE_LCD_BITMAP
273 struct skin_token_list *images; 279 struct skin_token_list *images;
274 struct skin_token_list *progressbars; 280 struct skin_token_list *progressbars;
281 struct skin_token_list *fonts;
275#endif 282#endif
276#if LCD_DEPTH > 1 || defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 283#if LCD_DEPTH > 1 || defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
277 char *backdrop; 284 char *backdrop;