diff src/video/maccommon/SDL_macevents.c @ 168:e92aa316c517

Added Max's patches for building MacOS X apps on command line
author Sam Lantinga <slouken@libsdl.org>
date Tue, 04 Sep 2001 23:18:45 +0000
parents 2d162219f433
children 49bf25403f5e
line wrap: on
line diff
--- a/src/video/maccommon/SDL_macevents.c	Tue Sep 04 22:53:46 2001 +0000
+++ b/src/video/maccommon/SDL_macevents.c	Tue Sep 04 23:18:45 2001 +0000
@@ -72,7 +72,7 @@
 		SDL_SetCursor(NULL);
 
 		/* put our mask back case it changed during context switch */
-		SetEventMask(everyEvent - autoKeyMask);
+		SetEventMask(everyEvent & ~autoKeyMask);
 	} else {
 #if TARGET_API_MAC_CARBON
 		{ Cursor cursor;
@@ -617,7 +617,7 @@
 	FlushEvents(everyEvent, 0);
 	
 	/* Allow every event but keyrepeat */
-	SetEventMask(everyEvent - autoKeyMask);
+	SetEventMask(everyEvent & ~autoKeyMask);
 }
 
 void Mac_QuitEvents(_THIS)