diff test/testalpha.c @ 1659:14717b52abc0 SDL-1.3

Merge trunk-1.3-3
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 May 2006 08:18:28 +0000
parents 4d241ea8a1cd
children 782fd950bd46 c121d94672cb b2f59aadec0d
line wrap: on
line diff
--- a/test/testalpha.c	Mon May 01 06:58:33 2006 +0000
+++ b/test/testalpha.c	Wed May 17 08:18:28 2006 +0000
@@ -505,7 +505,10 @@
 					}
 					break;
 				case SDL_KEYDOWN:
-					/* Any keypress quits the app... */
+					if ( event.key.keysym.sym == SDLK_ESCAPE ) {
+						done = 1;
+					}
+					break;
 				case SDL_QUIT:
 					done = 1;
 					break;