iOS/libraries/allegro/allegro/src/modesel.c
/* bpp_index:
 *  Returns the bpp index of the color depth given by DEPTH.
 */
Returns the bpp index of the color depth given by DEPTH.
Returns the bpp index of the color depth given by DEPTH .
static int bpp_index(int depth)
{
   int i;
   for (i=0; i < N_COLOR_DEPTH; i++) {
      if (bpp_value_list[i] == depth)
         return i;
   }
   ASSERT(FALSE);
   return -1;
}
static int bpp_index ( int depth ) { int i ; for ( i = 0 ; i < N_COLOR_DEPTH ; i ++ ) { if ( bpp_value_list [ i ] == depth ) return i ; } ASSERT ( FALSE ) ; return -1 ; }
bpp_index:
  Returns the bpp index of the color depth given by DEPTH.
bpp_index : Returns the bpp index of the color depth given by DEPTH .