# HG changeset patch # User albeu # Date 1184083709 0 # Node ID 4313ad18d816997ed1f15d3496aa5a9bbd72f154 # Parent 1b3e387330662b9a3f23bb3c17f131e849f6e4c6 10L, sub_scale need freetype, add the #ifdef. diff -r 1b3e38733066 -r 4313ad18d816 command.c --- a/command.c Tue Jul 10 11:18:55 2007 +0000 +++ b/command.c Tue Jul 10 16:08:29 2007 +0000 @@ -1430,6 +1430,7 @@ } +#ifdef HAVE_FREETYPE /// Subtitle scale (RW) static int mp_property_sub_scale(m_option_t * prop, int action, void *arg, MPContext * mpctx) @@ -1454,6 +1455,7 @@ return m_property_float_ro(prop, action, arg, text_font_scale_factor); } } +#endif ///@} @@ -1614,8 +1616,10 @@ M_OPT_RANGE, 0, 1, NULL }, { "sub_forced_only", mp_property_sub_forced_only, CONF_TYPE_FLAG, M_OPT_RANGE, 0, 1, NULL }, +#ifdef HAVE_FREETYPE { "sub_scale", mp_property_sub_scale, CONF_TYPE_FLOAT, M_OPT_RANGE, 0, 100, NULL }, +#endif #ifdef USE_TV { "tv_brightness", mp_property_tv_color, CONF_TYPE_INT, @@ -1722,7 +1726,9 @@ { "sub_delay", MP_CMD_SUB_DELAY, 0, 0, OSD_MSG_SUB_DELAY, MSGTR_SubDelayStatus }, { "sub_visibility", MP_CMD_SUB_VISIBILITY, 1, 0, -1, MSGTR_SubVisibleStatus }, { "sub_forced_only", MP_CMD_SUB_FORCED_ONLY, 1, 0, -1, MSGTR_SubForcedOnlyStatus }, +#ifdef HAVE_FREETYPE { "sub_scale", MP_CMD_SUB_SCALE, 0, 0, -1, MSGTR_SubScale}, +#endif #ifdef USE_TV { "tv_brightness", MP_CMD_TV_SET_BRIGHTNESS, 0, OSD_BRIGHTNESS, -1, MSGTR_Brightness }, { "tv_hue", MP_CMD_TV_SET_HUE, 0, OSD_HUE, -1, MSGTR_Hue },