1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2005-11-09 22:47:15 +00:00
parent c83216ad89
commit edf5a70e27
7 changed files with 36 additions and 30 deletions

View file

@ -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);
}