From f79bc5643087413448d6ad03b2a28ebf310f89d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sun, 27 Apr 2008 12:54:36 +0000 Subject: Use smaller data types in structs which are in big arrays to save memory git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17256 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/gui') diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h index 8d0cc00dc0..494d12a084 100644 --- a/apps/gui/gwps.h +++ b/apps/gui/gwps.h @@ -61,11 +61,11 @@ struct gui_img{ struct bitmap bm; struct viewport* vp; /* The viewport to display this image in */ - int x; /* x-pos */ - int y; /* y-pos */ - int num_subimages; /* number of sub-images */ - int subimage_height; /* height of each sub-image */ - int display; /* -1 for no display, 0..n to display a subimage */ + short int x; /* x-pos */ + short int y; /* y-pos */ + short int num_subimages; /* number of sub-images */ + short int subimage_height; /* height of each sub-image */ + short int display; /* -1 for no display, 0..n to display a subimage */ bool loaded; /* load state */ bool always_display; /* not using the preload/display mechanism */ }; @@ -276,7 +276,7 @@ enum wps_token_type { }; struct wps_token { - enum wps_token_type type; + unsigned char type; /* enough to store the token type */ /* Whether the tag (e.g. track name or the album) refers the current or the next song (false=current, true=next) */ -- cgit v1.2.3