changeset 4068:86746036a6d6 SDL-1.2

I think this fixes bug #454
author Sam Lantinga <slouken@libsdl.org>
date Sun, 15 Jul 2007 14:05:31 +0000
parents 07d621a03a94
children f19931785c42
files src/video/maccommon/SDL_macevents.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/maccommon/SDL_macevents.c	Sat Jul 14 21:09:54 2007 +0000
+++ b/src/video/maccommon/SDL_macevents.c	Sun Jul 15 14:05:31 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 Uint8 *keysptr = (Uint8 *) keys;
+		const Uint8 *last_keysptr = (Uint8 *) last_keys;
 
 		/* Check for special non-event keys */
 		if ( event.modifiers != last_mods ) {