diff options
author | wm4 <wm4@nowhere> | 2015-08-28 14:35:41 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-28 14:51:35 +0200 |
commit | c52af17682c130fa5324f9a4b4c53713c78cedaa (patch) | |
tree | 0ef3757be1e0c2183193c41e6455b41597dd919c /libass/ass_render_api.c | |
parent | b658669c0df5ef3adacd92cc29a9e679bd8bdd2f (diff) | |
download | libass-c52af17682c130fa5324f9a4b4c53713c78cedaa.tar.bz2 libass-c52af17682c130fa5324f9a4b4c53713c78cedaa.tar.xz |
ass: restore ABI compatibility with older versions (more or less)
While enums normally are ints on most systems, it isn't guaranteed. This
might also make C++ code fail to compile, since C++ doesn't allow
implicit conversion of ints to enums.
If the API user ever passed anything other than 0 or 1, compatibility
will still break, but I guess we have to live with this.
Also extend the doxygen.
Diffstat (limited to 'libass/ass_render_api.c')
-rw-r--r-- | libass/ass_render_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render_api.c b/libass/ass_render_api.c index efc88f1..a23cd20 100644 --- a/libass/ass_render_api.c +++ b/libass/ass_render_api.c @@ -135,7 +135,7 @@ void ass_set_line_position(ASS_Renderer *priv, double line_position) } void ass_set_fonts(ASS_Renderer *priv, const char *default_font, - const char *default_family, ASS_DefaultFontProvider dfp, + const char *default_family, int dfp, const char *config, int update) { free(priv->settings.default_font); |