summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/wps_internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r--apps/gui/skin_engine/wps_internals.h30
1 files changed, 19 insertions, 11 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h
index d1674ac88e..e2330a777e 100644
--- a/apps/gui/skin_engine/wps_internals.h
+++ b/apps/gui/skin_engine/wps_internals.h
@@ -220,6 +220,24 @@ struct touchregion {
220 int action; /* action this button will return */ 220 int action; /* action this button will return */
221}; 221};
222#endif 222#endif
223
224
225#ifdef HAVE_ALBUMART
226struct skin_albumart {
227 /* Album art support */
228 struct viewport *vp;/* The viewport this is in */
229 unsigned char wps_uses_albumart; /* WPS_ALBUMART_NONE, _CHECK, _LOAD */
230 short albumart_x;
231 short albumart_y;
232 unsigned char albumart_xalign; /* WPS_ALBUMART_ALIGN_LEFT, _CENTER, _RIGHT */
233 unsigned char albumart_yalign; /* WPS_ALBUMART_ALIGN_TOP, _CENTER, _BOTTOM */
234 short albumart_max_width;
235 short albumart_max_height;
236
237 bool draw;
238};
239#endif
240
223/* wps_data 241/* wps_data
224 this struct holds all necessary data which describes the 242 this struct holds all necessary data which describes the
225 viewable content of a wps */ 243 viewable content of a wps */
@@ -233,18 +251,8 @@ struct wps_data
233 struct skin_token_list *progressbars; 251 struct skin_token_list *progressbars;
234 252
235 bool peak_meter_enabled; 253 bool peak_meter_enabled;
236
237#ifdef HAVE_ALBUMART 254#ifdef HAVE_ALBUMART
238 /* Album art support */ 255 struct skin_albumart *albumart;
239 unsigned char wps_uses_albumart; /* WPS_ALBUMART_NONE, _CHECK, _LOAD */
240 short albumart_x;
241 short albumart_y;
242 unsigned char albumart_xalign; /* WPS_ALBUMART_ALIGN_LEFT, _CENTER, _RIGHT */
243 unsigned char albumart_yalign; /* WPS_ALBUMART_ALIGN_TOP, _CENTER, _BOTTOM */
244 short albumart_max_width;
245 short albumart_max_height;
246
247 int albumart_cond_index;
248#endif 256#endif
249 257
250#else /*HAVE_LCD_CHARCELLS */ 258#else /*HAVE_LCD_CHARCELLS */