From 888c644420b138875bf5e9f956d926b0be784eae Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 1 Sep 2015 14:08:47 +0200 Subject: fontselect: use designated initializers Tired of matching the names and order of the callbacks in my head. While we're at it, also give some of the callbacks better names. --- libass/ass_coretext.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'libass/ass_coretext.c') diff --git a/libass/ass_coretext.c b/libass/ass_coretext.c index 35f10ff..00d4c45 100644 --- a/libass/ass_coretext.c +++ b/libass/ass_coretext.c @@ -287,17 +287,12 @@ static char *get_fallback(void *priv, ASS_FontProviderMetaData *meta, } static ASS_FontProviderFuncs coretext_callbacks = { - NULL, - check_glyph, - destroy_font, - NULL, -#if CT_FONTS_EAGER_LOAD - NULL, -#else - match_fonts, + .check_glyph = check_glyph, + .destroy_font = destroy_font, +#if !CT_FONTS_EAGER_LOAD + .match_fonts = match_fonts, #endif - NULL, - get_fallback + .get_fallback = get_fallback, }; ASS_FontProvider * -- cgit v1.2.3