Commit a47898cf authored by Daniel Amm's avatar Daniel Amm Committed by Jean-Baptiste Kempf

win32: update video position slider when it is clicked

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent d5accd8f
......@@ -422,15 +422,13 @@ void VLCControlsWnd::NeedHideControls()
KillTimer(hWnd(), 1);
}
void VLCControlsWnd::SetVideoPosScrollPosByVideoPos(libvlc_time_t CurScrollPos)
{
PostMessage(hVideoPosScroll, (UINT)PBM_SETPOS, (WPARAM) (CurScrollPos >> VideoPosShiftBits), 0);
}
void VLCControlsWnd::SetVideoPos(float Pos) //0-start, 1-end
{
if( VP() ){
VP()->get_mp().setPosition( Pos );
if( VP()->get_mp().length() > 0 )
PostMessage(hVideoPosScroll, (UINT)PBM_SETPOS, (WPARAM) (Pos * 100), 0);
}
}
......
......@@ -109,7 +109,6 @@ private:
void SyncVolumeSliderWithVLCVolume();
void SetVLCVolumeBySliderPos(int CurScrollPos);
void SetVideoPosScrollPosByVideoPos(libvlc_time_t CurScrollPos);
void RegisterToVLCEvents();
void NeedHideControls();
......
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