more properly handling new haa semantics
[drnoksnes] / platform / sdli.cpp
index a3c4745..5a3e7bf 100644 (file)
@@ -142,6 +142,8 @@ static void processMouse(unsigned int x, unsigned int y, int pressed = 0)
 
 static void processEvent(const SDL_Event& event)
 {
+       if (videoEventFilter(event)) return;
+
        switch (event.type) 
        {
                case SDL_KEYDOWN:
@@ -165,10 +167,6 @@ static void processEvent(const SDL_Event& event)
                case SDL_QUIT:
                        Config.quitting = true;
                        break;
-               case SDL_ACTIVEEVENT:
-               case SDL_SYSWMEVENT:
-                       processVideoEvent(event);
-                       break;
        }
 }