comparison test/testwm.c @ 609:a30b17e09cc0

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sat, 22 Mar 2003 17:39:26 +0000
parents 9c9598e4b904
children 3eddf51b649b
comparison
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 }