mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
14a1493f73
commit
baf95f8146
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue