Commit e61ba5a7 authored by Michael E's avatar Michael E Committed by Rémi Denis-Courmont

Fix scope alignment

This sets the base level of the scope display back to the centre of
its channel. Has been broken for at least +1 year.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 618b77f9
......@@ -819,7 +819,7 @@ int scope_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
uint8_t i_value;
/* Left channel */
i_value = p_sample[p_effect->i_idx_left] * 127;
i_value = (1.0+p_sample[p_effect->i_idx_left]) * 127;
*(ppp_area[0][0]
+ p_picture->p[0].i_pitch * i_index / p_effect->i_width
+ p_picture->p[0].i_lines * i_value / 512
......@@ -831,7 +831,7 @@ int scope_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
/* Right channel */
i_value = p_sample[p_effect->i_idx_right] * 127;
i_value = (1.0+p_sample[p_effect->i_idx_right]) * 127;
*(ppp_area[1][0]
+ p_picture->p[0].i_pitch * i_index / p_effect->i_width
+ p_picture->p[0].i_lines * i_value / 512
......
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