From 053735ef0f456fe89a6e1d2aab4064e1e1501c62 Mon Sep 17 00:00:00 2001 From: sezero Date: Thu, 18 Feb 2010 10:33:33 +0000 Subject: [PATCH] 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@45 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quakespasm/Quake/main.c b/quakespasm/Quake/main.c index 14706706..465fa799 100644 --- a/quakespasm/Quake/main.c +++ b/quakespasm/Quake/main.c @@ -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;