Skip to content

Commit

Permalink
iOS: Fixed keyboard demo ignoring quit requests and window closing.
Browse files Browse the repository at this point in the history
This also fixed a warning about an unused variable.
  • Loading branch information
philippwiesemann committed Mar 28, 2016
1 parent e9ca5b2 commit bd60850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xcode-iOS/Demos/src/keyboard.c
Expand Up @@ -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;
Expand Down

0 comments on commit bd60850

Please sign in to comment.