# HG changeset patch # User ben # Date 1201447884 0 # Node ID 0dffd5c6422e78bc17f5fbc1f69308b5b3fff8b1 # Parent 43c76ab0bb84129d8c6f76c742d864e419d1fe71 sub_scale command can now handle both ass and non-ass subs at a time diff -r 43c76ab0bb84 -r 0dffd5c6422e command.c --- a/command.c Sun Jan 27 15:15:55 2008 +0000 +++ b/command.c Sun Jan 27 15:31:24 2008 +0000 @@ -1801,13 +1801,9 @@ 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 @@ 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