diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-12-07 17:29:24 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-12-07 17:29:24 +0000 |
commit | 439dd89a479e2d02fa40a421849c73616f92198e (patch) | |
tree | 96731a474ea0198a611f5fa03bcb360119d212a2 /source/vid_sdl.c | |
parent | 5c30b8152eb6a0fae6e50dbd834d73a2846df4ec (diff) |
Optimized FS_ListFiles (and broken Windows build).
Initial changes to demo browser to support caching.
Diffstat (limited to 'source/vid_sdl.c')
-rw-r--r-- | source/vid_sdl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/vid_sdl.c b/source/vid_sdl.c index 34ec7eb..4b51ada 100644 --- a/source/vid_sdl.c +++ b/source/vid_sdl.c @@ -93,9 +93,14 @@ success: } void Video_ModeChanged( void ) { + SDL_Event event; + if( !QSDL_SetMode( sdl.surface->flags, sdl.surface->format->BitsPerPixel ) ) { Com_Error( ERR_FATAL, "Couldn't change video mode: %s", SDL_GetError() ); } + + while( SDL_PollEvent( &event ) ) + ; } static qboolean QSDL_InitVideo( void ) { @@ -321,6 +326,7 @@ void Video_PumpEvents( void ) { Cvar_Set( "vid_placement", va( "%dx%d", event.resize.w, event.resize.h ) ); Video_ModeChanged(); + return; } break; |