iOS: Fixed keyboard demo ignoring quit requests and window closing.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 28 Mar 2016 21:01:26 +0200
changeset 10130 42e35c82335d
parent 10129 21cbbf2beb93
child 10131 65dffb9b1b34
iOS: Fixed keyboard demo ignoring quit requests and window closing. This also fixed a warning about an unused variable.
Xcode-iOS/Demos/src/keyboard.c
--- a/Xcode-iOS/Demos/src/keyboard.c	Sun Mar 27 22:26:34 2016 +0200
+++ b/Xcode-iOS/Demos/src/keyboard.c	Mon Mar 28 21:01:26 2016 +0200
@@ -253,7 +253,7 @@
 
     int done = 0;
     /* loop till we get SDL_Quit */
-    while (SDL_WaitEvent(&event)) {
+    while (!done && SDL_WaitEvent(&event)) {
         switch (event.type) {
         case SDL_QUIT:
             done = 1;