snd_mutewhenidle 0: do NOT still mute when app is hidden (e.g. virtual desktop change)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Aug 2009 06:23:22 +0000 (06:23 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Aug 2009 06:23:22 +0000 (06:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9130 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c
vid_sdl.c
vid_wgl.c

index e1023fd..165dcc7 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -1055,7 +1055,7 @@ void Sys_SendKeyEvents(void)
        static qboolean sound_active = true;
 
        // enable/disable sound on focus gain/loss
-       if (!vid_hidden && (vid_activewindow || !snd_mutewhenidle.integer))
+       if ((!vid_hidden && vid_activewindow) || !snd_mutewhenidle.integer)
        {
                if (!sound_active)
                {
index a76fd37..94e0fa2 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -431,7 +431,7 @@ void Sys_SendKeyEvents( void )
                }
 
        // enable/disable sound on focus gain/loss
-       if (!vid_hidden && (vid_activewindow || !snd_mutewhenidle.integer))
+       if ((!vid_hidden && vid_activewindow) || !snd_mutewhenidle.integer)
        {
                if (!sound_active)
                {
index bde2dda..b9b2673 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -393,7 +393,7 @@ void AppActivate(BOOL fActive, BOOL minimize)
        vid_hidden = minimize;
 
        // enable/disable sound on focus gain/loss
-       if (!vid_hidden && (vid_activewindow || !snd_mutewhenidle.integer))
+       if ((!vid_hidden && vid_activewindow) || !snd_mutewhenidle.integer)
        {
                if (!sound_active)
                {