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

under the SDL_ACTIVEEVENT case.


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

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;