From d8c78801d052d515fe991d578eeb18eebd0e57f8 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 19 Aug 2009 06:23:22 +0000 Subject: [PATCH] snd_mutewhenidle 0: do NOT still mute when app is hidden (e.g. virtual desktop change) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9130 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_glx.c | 2 +- vid_sdl.c | 2 +- vid_wgl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vid_glx.c b/vid_glx.c index e1023fdc..165dcc79 100644 --- 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) { diff --git a/vid_sdl.c b/vid_sdl.c index a76fd37e..94e0fa24 100644 --- 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) { diff --git a/vid_wgl.c b/vid_wgl.c index bde2dda2..b9b26732 100644 --- 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) { -- 2.39.2