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_directwrite.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_directwrite.c')
-rw-r--r-- | libass/ass_directwrite.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libass/ass_directwrite.c b/libass/ass_directwrite.c index fb21d5c..1ef0616 100644 --- a/libass/ass_directwrite.c +++ b/libass/ass_directwrite.c @@ -628,13 +628,11 @@ static void scan_fonts(IDWriteFactory *factory, * specified task */ static ASS_FontProviderFuncs directwrite_callbacks = { - get_data, - check_glyph, - destroy_font, - destroy_provider, - NULL, - NULL, - get_fallback + .get_data = get_data, + .check_glyph = check_glyph, + .destroy_font = destroy_font, + .destroy_provider = destroy_provider, + .get_fallback = get_fallback, }; typedef HRESULT WINAPI (*DWriteCreateFactoryFn)( |