diff options
author | Nils Wallménius <nils@rockbox.org> | 2008-04-27 12:54:36 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2008-04-27 12:54:36 +0000 |
commit | f79bc5643087413448d6ad03b2a28ebf310f89d0 (patch) | |
tree | 535195c948bb1c40fafa6dc29e331bd69356c9bd /apps/gui | |
parent | 1c7b95b783e2f9701359ef1cfdfa0f040902e43f (diff) |
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
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/gwps.h | 12 |
1 files changed, 6 insertions, 6 deletions
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) */ |