1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

hotkeys: fix SPU scaling limits

Otherwise it's impossible to reset the value to 100%
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
This commit is contained in:
Romain Vimont 2018-04-19 12:33:19 +02:00 committed by Hugo Beauzée-Luyssen
parent b11576810d
commit 35a5a0ab24

View File

@ -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 );