iOS/buildlibs/armv7/allegro-4.4.2/addons/allegrogl/src/fontconv.c
/* agl_get_font_range_end:
 * font vtable entry
 * Get last character for font range.
 */
font vtable entry
Get last character for font range.
font vtable entry Get last character for font range .
static int agl_get_font_range_end(FONT *f, int range) {
	FONT_AGL_DATA* fad = 0;
	int n = 0;
	if (!f || !f->data)
		return -1;
	fad = (FONT_AGL_DATA*)(f->data);
	while (fad && (n <= range || range == -1)) {
		FONT_AGL_DATA *next = fad->next;
		if (!next || range == n)
			return fad->end - 1;
		fad = next;
		n++;
	}
	return -1;
}
static int agl_get_font_range_end ( FONT * f , int range ) { FONT_AGL_DATA * fad = 0 ; int n = 0 ; if ( ! f || ! f -> data ) return -1 ; fad = ( FONT_AGL_DATA * ) ( f -> data ) ; while ( fad && ( n <= range || range == -1 ) ) { FONT_AGL_DATA * next = fad -> next ; if ( ! next || range == n ) return fad -> end - 1 ; fad = next ; n ++ ; } return -1 ; }
agl_get_font_range_end:
 font vtable entry
 Get last character for font range.
agl_get_font_range_end : font vtable entry Get last character for font range .