[PATCH] handle SDL quit event

Ansgar Burchardt ansgar-guest at alioth.debian.org
Sat Dec 13 14:00:01 UTC 2008


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 |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/sdl/interrpt.c b/sdl/interrpt.c
index 91a27ab..d6ab688 100644
--- a/sdl/interrpt.c
+++ b/sdl/interrpt.c
@@ -419,6 +419,9 @@ int intr_sysupdate()
 				break;
 			}
 			break;
+		case SDL_QUIT:
+			deinit_program();
+			break;
 		default:
 			break;
 		}
-- 
1.5.6.5


--=-=-=--





More information about the Pkg-games-devel mailing list