comparison src/video/SDL_video.c @ 460:a888b3ae31ff

Reset mouse state when changing video modes
author Sam Lantinga <slouken@libsdl.org>
date Tue, 20 Aug 2002 06:01:20 +0000
parents b4e14b15af3c
children 0a111805b53a
comparison
equal deleted inserted replaced
459:2a778055dbba 460:a888b3ae31ff
605 flags &= ~(SDL_HWSURFACE|SDL_DOUBLEBUF); 605 flags &= ~(SDL_HWSURFACE|SDL_DOUBLEBUF);
606 } 606 }
607 607
608 /* Reset the keyboard here so event callbacks can run */ 608 /* Reset the keyboard here so event callbacks can run */
609 SDL_ResetKeyboard(); 609 SDL_ResetKeyboard();
610 SDL_ResetMouse();
610 611
611 /* Clean up any previous video mode */ 612 /* Clean up any previous video mode */
612 if ( SDL_PublicSurface != NULL ) { 613 if ( SDL_PublicSurface != NULL ) {
613 SDL_PublicSurface = NULL; 614 SDL_PublicSurface = NULL;
614 } 615 }