[vlc-commits] skins2: clean volume step usage
Rémi Denis-Courmont
git at videolan.org
Fri Jul 20 16:58:40 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jul 20 17:46:46 2012 +0300| [8e8b8d7db4e1cca7725b64b41579a6fa9b7ad013] | committer: Rémi Denis-Courmont
skins2: clean volume step usage
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8e8b8d7db4e1cca7725b64b41579a6fa9b7ad013
---
modules/gui/skins2/vars/volume.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/skins2/vars/volume.cpp b/modules/gui/skins2/vars/volume.cpp
index 2dafb4b..aa67fdc 100644
--- a/modules/gui/skins2/vars/volume.cpp
+++ b/modules/gui/skins2/vars/volume.cpp
@@ -33,9 +33,10 @@
Volume::Volume( intf_thread_t *pIntf ): VarPercent( pIntf )
{
- m_step = (float)config_GetInt( pIntf, "volume-step" ) / AOUT_VOLUME_MAX;
m_max = 200;
m_volumeMax = AOUT_VOLUME_DEFAULT * 2;
+ m_step = (float)config_GetInt( pIntf, "volume-step" )
+ / (float)m_volumeMax;
// Initial value
float val = aout_VolumeGet( getIntf()->p_sys->p_playlist ) * 100.f;
More information about the vlc-commits
mailing list