src/video/x11/SDL_x11events.c
changeset 1740 db7e15a99cb3
parent 1575 3ba88cb7eb1b
child 1658 e49147870aac
child 1783 c546353b1ad4
equal deleted inserted replaced
1739:3a3e847aadb9 1740:db7e15a99cb3
   664 			if ( switch_waiting & SDL_FULLSCREEN ) {
   664 			if ( switch_waiting & SDL_FULLSCREEN ) {
   665 				switch_time = now + 1500;
   665 				switch_time = now + 1500;
   666 			} else {
   666 			} else {
   667 				switch_time = now + 200;
   667 				switch_time = now + 200;
   668 			}
   668 			}
   669 		} else if ( now >= switch_time ) {
   669 		} else if ( (int)(switch_time-now) <= 0 ) {
   670 			Uint32 go_fullscreen;
   670 			Uint32 go_fullscreen;
   671 
   671 
   672 			go_fullscreen = switch_waiting & SDL_FULLSCREEN;
   672 			go_fullscreen = switch_waiting & SDL_FULLSCREEN;
   673 			switch_waiting = 0;
   673 			switch_waiting = 0;
   674 			if ( SDL_VideoSurface->flags & SDL_FULLSCREEN ) {
   674 			if ( SDL_VideoSurface->flags & SDL_FULLSCREEN ) {