Commit 5d4a883d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

skins2: do not assume AOUT_VOLUME_MAX = 4 * AOUT_VOLUME_DEFAULT

parent f073535f
...@@ -36,13 +36,13 @@ Volume::Volume( intf_thread_t *pIntf ): VarPercent( pIntf ) ...@@ -36,13 +36,13 @@ Volume::Volume( intf_thread_t *pIntf ): VarPercent( pIntf )
m_step = (float)config_GetInt( pIntf, "volume-step" ) / AOUT_VOLUME_MAX; m_step = (float)config_GetInt( pIntf, "volume-step" ) / AOUT_VOLUME_MAX;
if( var_InheritBool( pIntf, "qt-volume-complete" ) ) if( var_InheritBool( pIntf, "qt-volume-complete" ) )
{ {
m_max = 400; m_max = AOUT_VOLUME_MAX * 100 / AOUT_VOLUME_DEFAULT;
m_volumeMax = AOUT_VOLUME_MAX; m_volumeMax = AOUT_VOLUME_MAX;
} }
else else
{ {
m_max = 200; m_max = 200;
m_volumeMax = AOUT_VOLUME_MAX / 2; m_volumeMax = AOUT_VOLUME_DEFAULT * 2;
} }
// Initial value // Initial value
......
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