Use variables for what they were created for SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Thu, 11 Oct 2012 19:08:03 +0200
branchSDL-1.2
changeset 6572 0d391c407a4f
parent 6563 ba187d0466e6
child 6582 8b7e21749630
Use variables for what they were created for
src/video/gem/SDL_gemevents.c
--- a/src/video/gem/SDL_gemevents.c	Fri Oct 05 23:18:53 2012 -0400
+++ b/src/video/gem/SDL_gemevents.c	Thu Oct 11 19:08:03 2012 +0200
@@ -114,6 +114,8 @@
 		if (resultat & MU_KEYBD) {
 			if ((prevkc != kc) || (prevks != kstate)) {
 				do_keyboard(kc,kstate);
+				prevkc = kc;
+				prevks = ks;
 			} else {
 				/* Avoid looping, if repeating same key */
 				break;