discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0c0377c68648e95aab6938f02b9f6db87edfdb1c

commit 0c0377c68648e95aab6938f02b9f6db87edfdb1c
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Apr 18 11:42:45 2016 -0400

    allow mixer volume increase actions to exceed 100%
    
    ref 0bbb20a3be3decbe1de16d42e829652f25c11fa7
    
    cc @raster probably should have some kind of theme indicator in the theme
    for "high" volumes > 100%
---
 src/modules/mixer/e_mod_main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/mixer/e_mod_main.c b/src/modules/mixer/e_mod_main.c
index 8723c28..fd3e808 100644
--- a/src/modules/mixer/e_mod_main.c
+++ b/src/modules/mixer/e_mod_main.c
@@ -179,10 +179,10 @@ _volume_increase_cb(E_Object *obj EINA_UNUSED, const char 
*params EINA_UNUSED)
    volume.volumes = calloc(s->volume.channel_count, sizeof(int));
    for (i = 0; i < volume.channel_count; i++)
      {
-        if (s->volume.volumes[i] < EMIX_VOLUME_MAX - VOLUME_STEP)
+        if (s->volume.volumes[i] < (EMIX_VOLUME_MAX + 50) - VOLUME_STEP)
           volume.volumes[i] = s->volume.volumes[i] + VOLUME_STEP;
-        else if (s->volume.volumes[i] < EMIX_VOLUME_MAX)
-          volume.volumes[i] = EMIX_VOLUME_MAX;
+        else if (s->volume.volumes[i] < EMIX_VOLUME_MAX + 50)
+          volume.volumes[i] = EMIX_VOLUME_MAX + 50;
         else
           volume.volumes[i] = s->volume.volumes[i];
      }

-- 


Reply via email to