main.c (main): Block/Unblock sound upon focus loss/gain, implemented

under the SDL_ACTIVEEVENT case.


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@97 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-03-01 23:10:13 +00:00
parent d59918c434
commit ae22d65e0a

View file

@ -77,14 +77,13 @@ int main(int argc, char *argv[])
case SDL_ACTIVEEVENT:
if (event.active.state & (SDL_APPACTIVE|SDL_APPINPUTFOCUS))
{
// TODO: handle sound
if (event.active.gain)
{
// IN_Activate();
S_UnblockSound();
}
else
{
// IN_Deactivate(vid.type == MODE_WINDOWED);
S_BlockSound();
}
}
break;