summaryrefslogtreecommitdiffstats
path: root/libass/ass_fontselect.c
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2015-10-19 14:35:24 +0300
committerOleg Oshmyan <chortos@inbox.lv>2015-10-21 21:36:48 +0300
commitf224c97d4566ca7338cfcd621ce3bd8548372791 (patch)
tree438b70585b4239512a12e2dee75dc8251ea757e7 /libass/ass_fontselect.c
parent43b15208c5452b8f6eb29853b89f3d5953402176 (diff)
downloadlibass-f224c97d4566ca7338cfcd621ce3bd8548372791.tar.bz2
libass-f224c97d4566ca7338cfcd621ce3bd8548372791.tar.xz
fontselect: fix ass_font_provider_add_font signature and doxygen
index is signed, and psname only overrides it iff index < 0.
Diffstat (limited to 'libass/ass_fontselect.c')
-rw-r--r--libass/ass_fontselect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libass/ass_fontselect.c b/libass/ass_fontselect.c
index 521b4d0..72d6d0b 100644
--- a/libass/ass_fontselect.c
+++ b/libass/ass_fontselect.c
@@ -236,15 +236,15 @@ static void ass_font_provider_free_fontinfo(ASS_FontInfo *info)
* \param provider the font provider
* \param meta basic metadata of the font
* \param path path to the font file, or NULL
- * \param index face index inside the file
- * \param psname PostScript name of the face (overrides index if present)
+ * \param index face index inside the file (-1 to look up by PostScript name)
+ * \param psname PostScript name of the face
* \param data private data for the font
* \return success
*/
int
ass_font_provider_add_font(ASS_FontProvider *provider,
ASS_FontProviderMetaData *meta, const char *path,
- unsigned int index, const char *psname, void *data)
+ int index, const char *psname, void *data)
{
int i;
int weight, slant, width;