added recognizing window resize events in door request mode
authorHolger Schemel <info@artsoft.org>
Mon, 10 Apr 2017 21:39:46 +0000 (23:39 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 10 Apr 2017 21:39:46 +0000 (23:39 +0200)
src/tools.c

index 6c990cb..e0e7985 100644 (file)
@@ -3886,6 +3886,19 @@ static int RequestHandleEvents(unsigned int req_state)
            break;
          }
 
+#if defined(TARGET_SDL2)
+      case SDL_WINDOWEVENT:
+       HandleWindowEvent((WindowEvent *) &event);
+       break;
+
+      case SDL_APP_WILLENTERBACKGROUND:
+      case SDL_APP_DIDENTERBACKGROUND:
+      case SDL_APP_WILLENTERFOREGROUND:
+      case SDL_APP_DIDENTERFOREGROUND:
+       HandlePauseResumeEvent((PauseResumeEvent *) &event);
+       break;
+#endif
+
          case EVENT_KEYPRESS:
          {
            Key key = GetEventKey((KeyEvent *)&event, TRUE);