[Commits] SDL: iOS: Fixed keyboard demo ignoring quit requests and window ...

libsdl.org revision control commits-owner at libsdl.org
Mon Mar 28 12:10:41 PDT 2016


details:   https://hg.libsdl.org/SDL/rev/42e35c82335d
changeset: 10127:42e35c82335d
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Mon Mar 28 21:01:26 2016 +0200
description:
iOS: Fixed keyboard demo ignoring quit requests and window closing.

This also fixed a warning about an unused variable.

diffstat:

 Xcode-iOS/Demos/src/keyboard.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 21cbbf2beb93 -r 42e35c82335d 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;


More information about the commits mailing list