An attempt at fixing Bugzilla #454. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sun, 15 Jul 2007 14:14:45 +0000
branchSDL-1.2
changeset 4069 f19931785c42
parent 4068 86746036a6d6
child 4070 b8f2db95145e
An attempt at fixing Bugzilla #454.
src/video/maccommon/SDL_macevents.c
--- a/src/video/maccommon/SDL_macevents.c	Sun Jul 15 14:05:31 2007 +0000
+++ b/src/video/maccommon/SDL_macevents.c	Sun Jul 15 14:14:45 2007 +0000
@@ -159,8 +159,8 @@
 	/* Check the current state of the keyboard */
 	if ( SDL_GetAppState() & SDL_APPINPUTFOCUS ) {
 		KeyMap keys;
-		const Uint8 *keysptr = (Uint8 *) keys;
-		const Uint8 *last_keysptr = (Uint8 *) last_keys;
+		const Uint32 *keysptr = (Uint32 *) &keys;
+		const Uint32 *last_keysptr = (Uint32 *) &last_keys;
 
 		/* Check for special non-event keys */
 		if ( event.modifiers != last_mods ) {