diff options
author | Jens Arnold <amiconn@rockbox.org> | 2009-08-16 17:35:36 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2009-08-16 17:35:36 +0000 |
commit | eefe832785407c387e71aba476091e805eecc3f4 (patch) | |
tree | 3d930a5adb21019773b1843e13fcee8438c56559 | |
parent | bf9facc49c0ef0a8fabdda3d1e765c2edd2e390f (diff) | |
download | rockbox-eefe832785407c387e71aba476091e805eecc3f4.tar.gz rockbox-eefe832785407c387e71aba476091e805eecc3f4.zip |
Save a bit of binsize by using a more suitable datatype and making the array static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22349 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/screens.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/screens.c b/apps/screens.c index 4ec35f9f57..76c8c42e64 100644 --- a/apps/screens.c +++ b/apps/screens.c | |||
@@ -517,7 +517,8 @@ bool set_time_screen(const char* title, struct tm *tm) | |||
517 | unsigned int statusbar_height = 0; | 517 | unsigned int statusbar_height = 0; |
518 | unsigned int separator_width, weekday_width; | 518 | unsigned int separator_width, weekday_width; |
519 | unsigned int prev_line_height; | 519 | unsigned int prev_line_height; |
520 | int daysinmonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | 520 | static unsigned char daysinmonth[] = |
521 | {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | ||
521 | unsigned char buffer[20]; | 522 | unsigned char buffer[20]; |
522 | struct viewport vp[NB_SCREENS]; | 523 | struct viewport vp[NB_SCREENS]; |
523 | int nb_lines; | 524 | int nb_lines; |