test/testwm.c
changeset 609 a30b17e09cc0
parent 591 9c9598e4b904
child 826 3eddf51b649b
equal deleted inserted replaced
608:d0fecf67cd93 609:a30b17e09cc0
    91 	if ( mode == SDL_GRAB_ON ) {
    91 	if ( mode == SDL_GRAB_ON ) {
    92 		printf("Grab was on\n");
    92 		printf("Grab was on\n");
    93 	} else {
    93 	} else {
    94 		printf("Grab was off\n");
    94 		printf("Grab was off\n");
    95 	}
    95 	}
    96 	mode = SDL_WM_GrabInput(!mode);
    96 	mode = SDL_WM_GrabInput(mode ? SDL_GRAB_OFF : SDL_GRAB_ON);
    97 	if ( mode == SDL_GRAB_ON ) {
    97 	if ( mode == SDL_GRAB_ON ) {
    98 		printf("Grab is now on\n");
    98 		printf("Grab is now on\n");
    99 	} else {
    99 	} else {
   100 		printf("Grab is now off\n");
   100 		printf("Grab is now off\n");
   101 	}
   101 	}