Does SDL_SetVideoMode reset the event queue?

Does a call to SDL_SetVideoMode have an effect on the existing event queue?

Here is the scenario;

  1. Open an SDL window.
  2. Start the event queue.
  3. Press and hold a key.
    => SDL_KEYDOWN event is received.
  4. Call SDL_SetVideoMode to resize the window.
    => SDL_KEYUP event is received.
  5. Release the key.
    => No event is received.

What is up with the SDL_KEYUP event being received following the call to
SDL_SetVideoMode? Is this a known issue/expected behaviour?

Thanks,

  • Luke