From: divverent Date: Wed, 19 Aug 2009 06:23:22 +0000 (+0000) Subject: snd_mutewhenidle 0: do NOT still mute when app is hidden (e.g. virtual desktop change) X-Git-Tag: xonotic-v0.1.0preview~1499 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d8c78801d052d515fe991d578eeb18eebd0e57f8;p=xonotic%2Fdarkplaces.git 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 --- 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) {