mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 23:40:58 +00:00
-bgvolume switch stays... Allows CD music/ambient music to play while minimized
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@242 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
236d7a62ce
commit
7284633062
1 changed files with 6 additions and 4 deletions
|
@ -100,11 +100,13 @@ int main(int argc, char *argv[])
|
||||||
case SDL_ACTIVEEVENT:
|
case SDL_ACTIVEEVENT:
|
||||||
if (event.active.state & (SDL_APPACTIVE|SDL_APPINPUTFOCUS))
|
if (event.active.state & (SDL_APPACTIVE|SDL_APPINPUTFOCUS))
|
||||||
{
|
{
|
||||||
|
if (!COM_CheckParm("-bgsound")) {
|
||||||
if (event.active.gain)
|
if (event.active.gain)
|
||||||
S_UnblockSound();
|
S_UnblockSound();
|
||||||
else
|
else
|
||||||
S_BlockSound();
|
S_BlockSound();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_MOUSEMOTION:
|
case SDL_MOUSEMOTION:
|
||||||
IN_MouseMove(event.motion.xrel, event.motion.yrel);
|
IN_MouseMove(event.motion.xrel, event.motion.yrel);
|
||||||
|
|
Loading…
Reference in a new issue