]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 e1023fdc79cb46c83abd12d239f0a4973a5f05f0..165dcc7919cfbba8dfacc5ad56bc359a9cbb483a 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 a76fd37e9132ca4e7f3fdcfc4e61570b7bbcfbaf..94e0fa24750b182f6f7308e3b5c37f687b585a2e 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 bde2dda2bf6af196dda10a4cf313929ad5f26841..b9b26732e281ce16cfc6290369586af880d47b21 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)
                {