]> git.sesse.net Git - vlc/commitdiff
modules/gui/wxwindows/*: fix for the volume control under win32.
authorGildas Bazin <gbazin@videolan.org>
Fri, 13 Jun 2003 15:54:42 +0000 (15:54 +0000)
committerGildas Bazin <gbazin@videolan.org>
Fri, 13 Jun 2003 15:54:42 +0000 (15:54 +0000)
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/timer.cpp

index 390b5f8ac61b252fd128ded9b158a360c7640866..71bbfb9e59ba1a11fecb3707937653aeff3f642c 100644 (file)
@@ -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;
 }
index 319166b997509f2f082d6a7da441899ca6c4ed6e..0adac7df796edcb1d4aa4efd4e31034182731224 100644 (file)
@@ -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 */