changeset 4313:772de6f365cf

little fix
author Eugene Zagidullin <e.asphyx@gmail.com>
date Sun, 02 Mar 2008 22:04:03 +0300
parents 45505a00a6cf
children e548627b2004
files src/audacious/ui_skinned_equalizer_slider.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_equalizer_slider.c	Sun Mar 02 21:50:02 2008 +0300
+++ b/src/audacious/ui_skinned_equalizer_slider.c	Sun Mar 02 22:04:03 2008 +0300
@@ -352,7 +352,7 @@
     if (priv->pressed)
         return;
 
-    priv->value = pos;
+    priv->value = (pos > EQUALIZER_MAX_GAIN) ? EQUALIZER_MAX_GAIN : ((pos < -EQUALIZER_MAX_GAIN) ? -EQUALIZER_MAX_GAIN : pos);
     priv->position = 25 - (gint) ((pos * 25.0) / EQUALIZER_MAX_GAIN);
 
     if (priv->position < 0)