Don't return garbage events from peek_events
Don't return garbage events from peek_events

SDL_PeepEvents returns the number of events it put in the buffer, which is
usually less than max_amount.

beni55/rust-sdl2,bfops/rust-sdl2,Cobrand/rust-sdl2,Cobrand/rust-sdl2,Rust-SDL2/rust-sdl2,oldmanmike/rust-sdl2,Rust-SDL2/rust-sdl2,vadixidav/rust-sdl2,wilsoniya/rust-sdl2,inrustwetrust/rust-sdl2,crumblingstatue/rust-sdl2,AngryLawyer/rust-sdl2,Rust-SDL2/rust-sdl2,Cobrand/rust-sdl2