From bd60850b82ef8caa253785d085da749cb21f64ba Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Mon, 28 Mar 2016 21:01:26 +0200 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xcode-iOS/Demos/src/keyboard.c b/Xcode-iOS/Demos/src/keyboard.c index 72db6a14a..ab819f1b6 100644 --- a/Xcode-iOS/Demos/src/keyboard.c +++ b/Xcode-iOS/Demos/src/keyboard.c @@ -253,7 +253,7 @@ main(int argc, char *argv[]) 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;