projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9245219
)
added recognizing window resize events in door request mode
author
Holger Schemel
<info@artsoft.org>
Mon, 10 Apr 2017 21:39:46 +0000
(23:39 +0200)
committer
Holger Schemel
<info@artsoft.org>
Mon, 10 Apr 2017 21:39:46 +0000
(23:39 +0200)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index 6c990cbc2cb956ff1cf009e92bfef32a56f4493d..e0e7985cf34909697919055a7fa76fe93ad1643b 100644
(file)
--- 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);