summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-11-09 22:47:15 +0000
committerJens Arnold <amiconn@rockbox.org>2005-11-09 22:47:15 +0000
commitedf5a70e276b5440ebb60713cf5db936eae09498 (patch)
tree335de901da47468f59c6f2b47954e2b83b6df9e7 /apps/screen_access.c
parentc83216ad891339c140358ee342e883d14b3d7158 (diff)
downloadrockbox-edf5a70e276b5440ebb60713cf5db936eae09498.tar.gz
rockbox-edf5a70e276b5440ebb60713cf5db936eae09498.tar.bz2
rockbox-edf5a70e276b5440ebb60713cf5db936eae09498.zip
Replaced the common for(i = 0; i < NB_SCREENS; i++) loop with a macro that just expands to i = 0; instead of the for() loop if NB_SCREENS == 1. Reduces binary size on platforms with only one screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7805 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screen_access.c')
-rw-r--r--apps/screen_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/screen_access.c b/apps/screen_access.c
index 5dde0cb8ae..1d2535fb66 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -153,7 +153,7 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
void screen_access_init(void)
{
int i;
- for(i=0;i<NB_SCREENS;i++)
+ FOR_NB_SCREENS(i)
screen_init(&screens[i], i);
}