diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-26 22:53:52 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-26 22:53:52 +0000 |
commit | 4dcceaf3695d1bb2f3dff4e4cd4edc0ff36254e1 (patch) | |
tree | 01de689ca7d6a7fab0b35e639add9090ba258718 /libass/ass_fontconfig.c | |
parent | 8a9fdef48d4557b4140f61cd06ba922f3bb3804e (diff) | |
download | libass-4dcceaf3695d1bb2f3dff4e4cd4edc0ff36254e1.tar.bz2 libass-4dcceaf3695d1bb2f3dff4e4cd4edc0ff36254e1.tar.xz |
Remove obsolete "no_more_font_messages" hack.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21295 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_fontconfig.c')
-rw-r--r-- | libass/ass_fontconfig.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c index f859a25..b4ac44e 100644 --- a/libass/ass_fontconfig.c +++ b/libass/ass_fontconfig.c @@ -43,8 +43,6 @@ struct fc_instance_s { int index_default; }; -extern int no_more_font_messages; - #ifdef HAVE_FONTCONFIG /** * \brief Low-level font selection. @@ -127,20 +125,19 @@ char* fontconfig_select(fc_instance_t* priv, const char* family, unsigned bold, res = _select_font(priv, family, bold, italic, index); if (!res && priv->family_default) { res = _select_font(priv, priv->family_default, bold, italic, index); - if (res && !no_more_font_messages) + if (res) mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_UsingDefaultFontFamily, family, bold, italic, res, *index); } if (!res && priv->path_default) { res = priv->path_default; *index = priv->index_default; - if (!no_more_font_messages) - mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_UsingDefaultFont, - family, bold, italic, res, *index); + mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_UsingDefaultFont, + family, bold, italic, res, *index); } if (!res) { res = _select_font(priv, "Arial", bold, italic, index); - if (res && !no_more_font_messages) + if (res) mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_UsingArialFontFamily, family, bold, italic, res, *index); } |