summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/wps_internals.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-14 15:49:11 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-14 15:49:11 +0000
commit0f0d9064c5e7add982d4b62850375985d79c1168 (patch)
tree432ace6da9deb1723e65851fd86a17c621c90405 /apps/gui/skin_engine/wps_internals.h
parentef53cc099e1a04442230967a755bf8850afef619 (diff)
downloadrockbox-0f0d9064c5e7add982d4b62850375985d79c1168.tar.gz
rockbox-0f0d9064c5e7add982d4b62850375985d79c1168.zip
Remove wps_reset(), and rename skin_data_init to skin_data_reset() and extend it to zero most of the wps_data members.
As these are called when parsing a skin it doesn't need to be called by the wps or settings, so make it local to skin_parser.c. Reorder the members of struct wps_data for more effecient alignment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23171 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r--apps/gui/skin_engine/wps_internals.h43
1 files changed, 19 insertions, 24 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h
index 177a376008..7a4fdddc7c 100644
--- a/apps/gui/skin_engine/wps_internals.h
+++ b/apps/gui/skin_engine/wps_internals.h
@@ -244,43 +244,38 @@ struct skin_albumart {
244struct wps_data 244struct wps_data
245{ 245{
246#ifdef HAVE_LCD_BITMAP 246#ifdef HAVE_LCD_BITMAP
247 bool wps_sb_tag;
248 bool show_sb_on_wps;
249
250 struct skin_token_list *images; 247 struct skin_token_list *images;
251 struct skin_token_list *progressbars; 248 struct skin_token_list *progressbars;
252
253 bool peak_meter_enabled;
254#ifdef HAVE_ALBUMART
255 struct skin_albumart *albumart;
256#endif
257
258#else /*HAVE_LCD_CHARCELLS */
259 unsigned short wps_progress_pat[8];
260 bool full_line_progressbar;
261#endif 249#endif
262 250
263#ifdef HAVE_TOUCHSCREEN 251#ifdef HAVE_TOUCHSCREEN
264 struct skin_token_list *touchregions; 252 struct skin_token_list *touchregions;
265#endif 253#endif
266
267#ifdef HAVE_REMOTE_LCD
268 bool remote_wps;
269#endif
270
271 struct skin_token_list *viewports; 254 struct skin_token_list *viewports;
272 255 struct skin_token_list *strings;
256#ifdef HAVE_ALBUMART
257 struct skin_albumart *albumart;
258#endif
259 struct wps_token *tokens;
273 /* Total number of tokens in the WPS. During WPS parsing, this is 260 /* Total number of tokens in the WPS. During WPS parsing, this is
274 the index of the token being parsed. */ 261 the index of the token being parsed. */
275 int num_tokens; 262 int num_tokens;
276 struct wps_token *tokens;
277
278 struct skin_token_list *strings;
279
280 bool wps_loaded;
281
282 /* tick the volume button was last pressed */ 263 /* tick the volume button was last pressed */
283 unsigned int button_time_volume; 264 unsigned int button_time_volume;
265
266#ifdef HAVE_LCD_BITMAP
267 bool peak_meter_enabled;
268 bool wps_sb_tag;
269 bool show_sb_on_wps;
270#else /*HAVE_LCD_CHARCELLS */
271 unsigned short wps_progress_pat[8];
272 bool full_line_progressbar;
273#endif
274 bool wps_loaded;
275#ifdef HAVE_REMOTE_LCD
276 /* this must not be reset on skin loading */
277 bool remote_wps;
278#endif
284}; 279};
285 280
286/* wps_data end */ 281/* wps_data end */