From: Holger Schemel Date: Mon, 10 Apr 2017 21:39:46 +0000 (+0200) Subject: added recognizing window resize events in door request mode X-Git-Tag: 4.0.1.0~53 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e761f7107c0b1fed42b1c57064251e53617a0093;p=rocksndiamonds.git added recognizing window resize events in door request mode --- diff --git a/src/tools.c b/src/tools.c index 6c990cbc..e0e7985c 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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);