From d045f59989137afc5e9138277bcb24dcfc4c5f3f Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 25 Sep 2009 18:36:18 +0000 Subject: Redo 22825 but this time with caring about alignment. Change coordinate members in struct skin_albumart to ints. That alone gives a tiny binsize decrease. Change the struct layout (some reordering) to enable more efficient alignment which reclaims 4 of the 8 bytes. Since there's usually only 1 aa struct this should be a net gain. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22835 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/wps_internals.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/gui/skin_engine/wps_internals.h') diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index e2330a777e..a5fc70d1ef 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h @@ -226,15 +226,15 @@ struct touchregion { struct skin_albumart { /* Album art support */ struct viewport *vp;/* The viewport this is in */ - unsigned char wps_uses_albumart; /* WPS_ALBUMART_NONE, _CHECK, _LOAD */ - short albumart_x; - short albumart_y; - unsigned char albumart_xalign; /* WPS_ALBUMART_ALIGN_LEFT, _CENTER, _RIGHT */ - unsigned char albumart_yalign; /* WPS_ALBUMART_ALIGN_TOP, _CENTER, _BOTTOM */ - short albumart_max_width; - short albumart_max_height; + int albumart_x; + int albumart_y; + int albumart_max_width; + int albumart_max_height; bool draw; + unsigned char albumart_xalign; /* WPS_ALBUMART_ALIGN_LEFT, _CENTER, _RIGHT */ + unsigned char albumart_yalign; /* WPS_ALBUMART_ALIGN_TOP, _CENTER, _BOTTOM */ + unsigned char wps_uses_albumart; /* WPS_ALBUMART_NONE, _CHECK, _LOAD */ }; #endif -- cgit v1.2.3