changeset 35543:5289e495e70e

Set volume in evSetBalance. This has been forgotten in r35633.
author ib
date Sun, 09 Dec 2012 14:42:36 +0000
parents fdaab02e7118
children fd7a5b62326d
files gui/ui/main.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/main.c	Sun Dec 09 14:41:24 2012 +0000
+++ b/gui/ui/main.c	Sun Dec 09 14:42:36 2012 +0000
@@ -125,7 +125,7 @@
 
 void uiEventHandling( int msg,float param )
 {
- int iparam = (int)param;
+ int iparam = (int)param, osd;
  mixer_t *mixer = mpctx_get_mixer(guiInfo.mpcontext);
 
  switch( msg )
@@ -307,6 +307,10 @@
    case evSetBalance:
         guiInfo.Balance=param;
         mixer_setbalance( mixer,(guiInfo.Balance - 50.0 ) / 50.0 );
+        osd = osd_level;
+        osd_level = 0;
+        uiEventHandling(evSetVolume, guiInfo.Volume);
+        osd_level = osd;
         if ( osd_level )
          {
           osd_visible=(GetTimerMS() + 1000) | 1;