handle SDL quit eventfeature/handle-quit-event
authorAnsgar Burchardt <ansgar-guest@alioth.debian.org>
Sat, 13 Dec 2008 14:00:01 +0000 (13 15:00 +0100)
committerAnsgar Burchardt <ansgar-guest@alioth.debian.org>
Sat, 13 Dec 2008 14:00:01 +0000 (13 15:00 +0100)
This patch makes Jump'n'bump quit when pressing the close button or
using other means to ask Jump'n'bump to quit (e.g. Alt+F4).

See http://bugs.debian.org/487333

sdl/interrpt.c

index 91a27ab..d6ab688 100644 (file)
@@ -419,6 +419,9 @@ int intr_sysupdate()
                                break;
                        }
                        break;
+               case SDL_QUIT:
+                       deinit_program();
+                       break;
                default:
                        break;
                }