/* following is only valid for horizontal a trackbar */
newpos = ((click.x-tRect.left-(thumb/2))*(max-min)+((tRect.right-tRect.left-thumb)/2))
- /(tRect.right-tRect.left-thumb);
+ /(tRect.right-tRect.left-thumb);
/* set new postion */
SendMessage(hWnd, TBM_SETPOS, TRUE, min+newpos);
void InputManager::UpdateNowPlaying()
{
- const char *psz_now_playing = input_item_GetNowPlaying( input_GetItem(p_input) );
+ char *psz_now_playing = input_item_GetNowPlaying( input_GetItem(p_input) );
if( psz_now_playing && *psz_now_playing )
{
p_main_intf->statusbar->SetStatusText(
p_main_intf->statusbar->SetStatusText(
wxU(input_GetItem(p_input)->psz_name), 2 );
}
+ free( psz_now_playing );
}
void InputManager::UpdateButtons( vlc_bool_t b_play )