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:
Ozkan Sezer 2010-02-18 10:33:33 +00:00
parent 7a8705bc34
commit 04e31c1ac6

View file

@ -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;