Commit 35a5a0ab authored by Romain Vimont's avatar Romain Vimont Committed by Hugo Beauzée-Luyssen

hotkeys: fix SPU scaling limits

Otherwise it's impossible to reset the value to 100%
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent b1157681
......@@ -1349,7 +1349,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
{
i_scale = var_GetInteger( p_playlist, "sub-text-scale" );
i_scale += ((i_action == ACTIONID_SUBTITLE_TEXT_SCALE_UP) ? 1 : -1) * 25;
i_scale = VLC_CLIP( i_scale, 10, 500 );
i_scale = VLC_CLIP( i_scale, 25, 500 );
}
var_SetInteger( p_playlist, "sub-text-scale", i_scale );
DisplayMessage( p_vout, _( "Subtitle text scale %d%%" ), i_scale );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment