changeset 609:a30b17e09cc0

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sat, 22 Mar 2003 17:39:26 +0000
parents d0fecf67cd93
children 95433459fbd2
files test/testwm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/testwm.c	Sun Mar 09 21:38:18 2003 +0000
+++ b/test/testwm.c	Sat Mar 22 17:39:26 2003 +0000
@@ -93,7 +93,7 @@
 	} else {
 		printf("Grab was off\n");
 	}
-	mode = SDL_WM_GrabInput(!mode);
+	mode = SDL_WM_GrabInput(mode ? SDL_GRAB_OFF : SDL_GRAB_ON);
 	if ( mode == SDL_GRAB_ON ) {
 		printf("Grab is now on\n");
 	} else {