Hi chromatic,

here is a small pach for _SDL_loop that fixes a crashes that occurs if you 
press a key that has no entry in the key_events hash.

jens
diff -u -w -r1.5 sdl_types.imc
--- library/sdl_types.imc	10 Feb 2004 19:31:49 -0000	1.5
+++ library/sdl_types.imc	12 Feb 2004 13:22:21 -0000
@@ -409,6 +409,10 @@
 _have_callback:
 	.sym int result
 
+	# no error if the event is not defined
+	typeof result, callback
+	if result == .PerlUndef goto loop
+	
 	.pcc_begin prototyped
 		.pcc_call callback
 		.result result

Reply via email to