Commit 3663faf1 authored by Gildas Bazin's avatar Gildas Bazin

modules/gui/wxwindows/*: fix for the volume control under win32.
parent dcf6aa5f
......@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.39 2003/06/12 22:03:36 gbazin Exp $
* $Id: interface.cpp,v 1.40 2003/06/13 15:54:42 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -889,7 +889,8 @@ bool DragAndDrop::OnDropFiles( wxCoord, wxCoord,
* Definition of wxVolCtrl class.
*****************************************************************************/
wxVolCtrl::wxVolCtrl( intf_thread_t *_p_intf, wxWindow* parent, wxWindowID id )
: wxGauge( parent, id, 200, wxDefaultPosition, wxDefaultSize, wxGA_VERTICAL )
: wxGauge( parent, id, 200, wxDefaultPosition, wxDefaultSize,
wxGA_VERTICAL | wxGA_SMOOTH )
{
p_intf = _p_intf;
}
......
......@@ -2,7 +2,7 @@
* timer.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: timer.cpp,v 1.23 2003/06/12 21:28:39 gbazin Exp $
* $Id: timer.cpp,v 1.24 2003/06/13 15:54:42 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -150,6 +150,10 @@ void Timer::Notify()
aout_VolumeGet( p_intf, &i_volume );
p_main_interface->volctrl->SetValue( i_volume * 200 /
AOUT_VOLUME_MAX );
p_main_interface->volctrl->SetToolTip(
wxString::Format((wxString)wxU(_("Volume")) + wxT(" %d"),
i_volume * 200 / AOUT_VOLUME_MAX ) );
}
/* control buttons for free pace streams */
......
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