From 073360b3a4129b3164ac3791d43e180a9971cff6 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 27 Jan 2008 15:31:24 +0000 Subject: sub_scale command can now handle both ass and non-ass subs at a time git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25881 b3059339-0415-0410-9bf9-f77b7e298cf2 --- command.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index 57e2f7a22a..9110119965 100644 --- a/command.c +++ b/command.c @@ -1801,13 +1801,9 @@ static int mp_property_sub_scale(m_option_t * prop, int action, void *arg, ass_font_scale = *(float *) arg; ass_force_reload = 1; } - else { #endif text_font_scale_factor = *(float *) arg; force_load_font = 1; -#ifdef USE_ASS - } -#endif return M_PROPERTY_OK; case M_PROPERTY_STEP_UP: case M_PROPERTY_STEP_DOWN: @@ -1818,15 +1814,11 @@ static int mp_property_sub_scale(m_option_t * prop, int action, void *arg, M_PROPERTY_CLAMP(prop, ass_font_scale); ass_force_reload = 1; } - else { #endif text_font_scale_factor += (arg ? *(float *) arg : 0.1)* (action == M_PROPERTY_STEP_UP ? 1.0 : -1.0); M_PROPERTY_CLAMP(prop, text_font_scale_factor); force_load_font = 1; -#ifdef USE_ASS - } -#endif return M_PROPERTY_OK; default: #ifdef USE_ASS -- cgit v1.2.3