summaryrefslogtreecommitdiffstats
path: root/libass/ass_fontconfig.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-01 14:08:47 +0200
committerwm4 <wm4@nowhere>2015-09-01 14:08:47 +0200
commit888c644420b138875bf5e9f956d926b0be784eae (patch)
tree6dd0a1184f3239e4dab7188995061d96da9fd8b0 /libass/ass_fontconfig.c
parent72f751e3a5693ed2b7e935cb6c31ce18eed8d7b0 (diff)
downloadlibass-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_fontconfig.c')
-rw-r--r--libass/ass_fontconfig.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c
index 0c89d36..e65e413 100644
--- a/libass/ass_fontconfig.c
+++ b/libass/ass_fontconfig.c
@@ -242,13 +242,10 @@ cleanup:
}
static ASS_FontProviderFuncs fontconfig_callbacks = {
- NULL,
- check_glyph,
- NULL,
- destroy,
- NULL,
- get_substitutions,
- get_fallback
+ .check_glyph = check_glyph,
+ .destroy_provider = destroy,
+ .get_substitutions = get_substitutions,
+ .get_fallback = get_fallback,
};
ASS_FontProvider *