diff src/video/SDL_video.c @ 14:c3e9d4a623c1

Fixed stuck keys when changing the video mode
author Sam Lantinga <slouken@lokigames.com>
date Tue, 01 May 2001 21:12:57 +0000
parents 7b94b6379341
children 8cc4dbfab9ab
line wrap: on
line diff
--- a/src/video/SDL_video.c	Sun Apr 29 23:00:03 2001 +0000
+++ b/src/video/SDL_video.c	Tue May 01 21:12:57 2001 +0000
@@ -567,6 +567,9 @@
 		flags &= ~(SDL_HWSURFACE|SDL_DOUBLEBUF);
 	}
 
+	/* Reset the keyboard here so event callbacks can run */
+	SDL_ResetKeyboard();
+
 	/* Clean up any previous video mode */
 	if ( SDL_PublicSurface != NULL ) {
 		SDL_PublicSurface = NULL;