diff options
author | wm4 <wm4@nowhere> | 2015-09-01 14:08:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-01 14:08:47 +0200 |
commit | 888c644420b138875bf5e9f956d926b0be784eae (patch) | |
tree | 6dd0a1184f3239e4dab7188995061d96da9fd8b0 /libass/ass_coretext.c | |
parent | 72f751e3a5693ed2b7e935cb6c31ce18eed8d7b0 (diff) | |
download | libass-888c644420b138875bf5e9f956d926b0be784eae.tar.bz2 libass-888c644420b138875bf5e9f956d926b0be784eae.tar.xz |
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.
Diffstat (limited to 'libass/ass_coretext.c')
-rw-r--r-- | libass/ass_coretext.c | 15 |
1 files changed, 5 insertions, 10 deletions
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 * |