iOS/buildlibs/armv7/allegro-4.4.2/addons/allegrogl/src/fontconv.c
/* QSort helper for sorting glyphs according to width,
 * then height - largest first.
 */
QSort helper for sorting glyphs according to width,
then height - largest first.
QSort helper for sorting glyphs according to width then height - largest first .
static int sort_glyphs(const void *c1, const void *c2) {
	AGL_GLYPH *g1 = (AGL_GLYPH*)c1;
	AGL_GLYPH *g2 = (AGL_GLYPH*)c2;
	if (g1->w < g2->w) {
		return 1;
	}
	else if (g1->w == g2->w) {
		return -g1->h + g2->h;
	}
	else {
		return -1;
	}
}
static int sort_glyphs ( const void * c1 , const void * c2 ) { AGL_GLYPH * g1 = ( AGL_GLYPH * ) c1 ; AGL_GLYPH * g2 = ( AGL_GLYPH * ) c2 ; if ( g1 -> w < g2 -> w ) { return 1 ; } else if ( g1 -> w == g2 -> w ) { return - g1 -> h + g2 -> h ; } else { return -1 ; } }
QSort helper for sorting glyphs according to width,
 then height - largest first.
QSort helper for sorting glyphs according to width then height - largest first .