comparison src/video/SDL_video.c @ 14:c3e9d4a623c1

Fixed stuck keys when changing the video mode
author Sam Lantinga <slouken@lokigames.com>
date Tue, 01 May 2001 21:12:57 +0000
parents 7b94b6379341
children 8cc4dbfab9ab
comparison
equal deleted inserted replaced
13:e30a8ce27c22 14:c3e9d4a623c1
564 is_opengl = ( ( flags & SDL_OPENGL ) == SDL_OPENGL ); 564 is_opengl = ( ( flags & SDL_OPENGL ) == SDL_OPENGL );
565 if ( is_opengl ) { 565 if ( is_opengl ) {
566 /* These flags are for 2D video modes only */ 566 /* These flags are for 2D video modes only */
567 flags &= ~(SDL_HWSURFACE|SDL_DOUBLEBUF); 567 flags &= ~(SDL_HWSURFACE|SDL_DOUBLEBUF);
568 } 568 }
569
570 /* Reset the keyboard here so event callbacks can run */
571 SDL_ResetKeyboard();
569 572
570 /* Clean up any previous video mode */ 573 /* Clean up any previous video mode */
571 if ( SDL_PublicSurface != NULL ) { 574 if ( SDL_PublicSurface != NULL ) {
572 SDL_PublicSurface = NULL; 575 SDL_PublicSurface = NULL;
573 } 576 }