changeset 36932:d762d49a47e0

Remove pointless btnModify() calls. These will be performed in the windows' draw handler prior to rendering anyway.
author ib
date Fri, 21 Mar 2014 14:33:50 +0000
parents 884277c93772
children fec1a036882c
files gui/interface.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Fri Mar 21 14:29:40 2014 +0000
+++ b/gui/interface.c	Fri Mar 21 14:33:50 2014 +0000
@@ -746,7 +746,6 @@
 
             mixer_getvolume(mixer, &l, &r);
             guiInfo.Volume = FFMAX(l, r);
-            btnModify(evSetVolume, guiInfo.Volume);
 
             mixer_getbalance(mixer, &b);
             guiInfo.Balance = (b + 1.0) * 50.0; // transform -1..1 to 0..100
@@ -755,7 +754,6 @@
                 l = guiInfo.Volume * (100.0 - guiInfo.Balance) / 50.0;
                 r = guiInfo.Volume * guiInfo.Balance / 50.0;
                 mixer_setvolume(mixer, FFMIN(l, guiInfo.Volume), FFMIN(r, guiInfo.Volume));
-                btnModify(evSetBalance, guiInfo.Balance);
                 last_balance = guiInfo.Balance;
             }
         }