src/video/SDL_video.c
changeset 1296 f418917e0b7a
parent 1266 a7bea6db3c3e
child 1312 c9b51268668f
equal deleted inserted replaced
1295:c3e36ac8a94c 1296:f418917e0b7a
   641 	}
   641 	}
   642 
   642 
   643 	/* Reset the keyboard here so event callbacks can run */
   643 	/* Reset the keyboard here so event callbacks can run */
   644 	SDL_ResetKeyboard();
   644 	SDL_ResetKeyboard();
   645 	SDL_ResetMouse();
   645 	SDL_ResetMouse();
       
   646 	SDL_cursorstate &= ~CURSOR_USINGSW;
   646 
   647 
   647 	/* Clean up any previous video mode */
   648 	/* Clean up any previous video mode */
   648 	if ( SDL_PublicSurface != NULL ) {
   649 	if ( SDL_PublicSurface != NULL ) {
   649 		SDL_PublicSurface = NULL;
   650 		SDL_PublicSurface = NULL;
   650 	}
   651 	}