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 6c990cbc2cb956ff1cf009e92bfef32a56f4493d..e0e7985cf34909697919055a7fa76fe93ad1643b 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);