mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
main.c (main): Fixed the utterly broken SDL active event mask usage. In
its original form, gcc rightfully considered that case a dead code even when not optimizing. Commented out the contents of the case for now. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@45 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7a8705bc34
commit
04e31c1ac6
1 changed files with 4 additions and 4 deletions
|
@ -76,16 +76,16 @@ int main(int argc, char *argv[])
|
|||
switch (event.type)
|
||||
{
|
||||
case SDL_ACTIVEEVENT:
|
||||
if (event.active.state & SDL_APPACTIVE & SDL_APPINPUTFOCUS)
|
||||
if (event.active.state & (SDL_APPACTIVE|SDL_APPINPUTFOCUS))
|
||||
{
|
||||
// TODO: handle sound
|
||||
if (event.active.gain)
|
||||
{
|
||||
IN_Activate();
|
||||
// IN_Activate();
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: handle sound
|
||||
IN_Deactivate(vid.type == MODE_WINDOWED);
|
||||
// IN_Deactivate(vid.type == MODE_WINDOWED);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue