iOS/buildlibs/armv7/allegro-4.4.2/addons/allegrogl/src/win.c
/* Helper function for sorting pixel formats by score */
Helper function for sorting pixel formats by score
Helper function for sorting pixel formats by score
static int select_pixel_format_sorter(const void *p0, const void *p1) {
	format_t *f0 = (format_t*)p0;
	format_t *f1 = (format_t*)p1;
	if (f0->score == f1->score) {
		return 0;
	}
	else if (f0->score > f1->score) {
		return -1;
	}
	else {
		return 1;
	}
}
static int select_pixel_format_sorter ( const void * p0 , const void * p1 ) { format_t * f0 = ( format_t * ) p0 ; format_t * f1 = ( format_t * ) p1 ; if ( f0 -> score == f1 -> score ) { return 0 ; } else if ( f0 -> score > f1 -> score ) { return -1 ; } else { return 1 ; } }
Helper function for sorting pixel formats by score
Helper function for sorting pixel formats by score