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 | |
parent | 1c7b95b783e2f9701359ef1cfdfa0f040902e43f (diff) | |
download | rockbox-f79bc5643087413448d6ad03b2a28ebf310f89d0.tar.gz rockbox-f79bc5643087413448d6ad03b2a28ebf310f89d0.zip |
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
-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 @@ | |||
61 | struct gui_img{ | 61 | struct gui_img{ |
62 | struct bitmap bm; | 62 | struct bitmap bm; |
63 | struct viewport* vp; /* The viewport to display this image in */ | 63 | struct viewport* vp; /* The viewport to display this image in */ |
64 | int x; /* x-pos */ | 64 | short int x; /* x-pos */ |
65 | int y; /* y-pos */ | 65 | short int y; /* y-pos */ |
66 | int num_subimages; /* number of sub-images */ | 66 | short int num_subimages; /* number of sub-images */ |
67 | int subimage_height; /* height of each sub-image */ | 67 | short int subimage_height; /* height of each sub-image */ |
68 | int display; /* -1 for no display, 0..n to display a subimage */ | 68 | short int display; /* -1 for no display, 0..n to display a subimage */ |
69 | bool loaded; /* load state */ | 69 | bool loaded; /* load state */ |
70 | bool always_display; /* not using the preload/display mechanism */ | 70 | bool always_display; /* not using the preload/display mechanism */ |
71 | }; | 71 | }; |
@@ -276,7 +276,7 @@ enum wps_token_type { | |||
276 | }; | 276 | }; |
277 | 277 | ||
278 | struct wps_token { | 278 | struct wps_token { |
279 | enum wps_token_type type; | 279 | unsigned char type; /* enough to store the token type */ |
280 | 280 | ||
281 | /* Whether the tag (e.g. track name or the album) refers the | 281 | /* Whether the tag (e.g. track name or the album) refers the |
282 | current or the next song (false=current, true=next) */ | 282 | current or the next song (false=current, true=next) */ |