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:
parent
c83216ad89
commit
edf5a70e27
7 changed files with 36 additions and 30 deletions
|
|
@ -128,7 +128,7 @@ void gui_select_draw(struct gui_select * select, struct screen * display)
|
|||
void gui_syncselect_draw(struct gui_select * select)
|
||||
{
|
||||
int i;
|
||||
for(i=0;i<NB_SCREENS;i++)
|
||||
FOR_NB_SCREENS(i)
|
||||
gui_select_draw(select, &(screens[i]));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue