From eb1e2a0435f0ac44473a3f9874eb11e3672b355c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 12 Apr 2003 19:03:02 +0000 Subject: [PATCH] use SDL_GetEvent --- stepmania/src/StepMania.cpp | 2 +- stepmania/src/arch/InputHandler/InputHandler_SDL.cpp | 2 +- stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 4414f54641..f1e2128968 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -508,7 +508,7 @@ static void HandleSDLEvents() { // process all queued events SDL_Event event; - while(SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_QUITMASK|SDL_ACTIVEEVENTMASK)) + while(SDL_GetEvent(event, SDL_QUITMASK|SDL_ACTIVEEVENTMASK)) { switch(event.type) { diff --git a/stepmania/src/arch/InputHandler/InputHandler_SDL.cpp b/stepmania/src/arch/InputHandler/InputHandler_SDL.cpp index 3964d1bc92..df8d8bee50 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_SDL.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_SDL.cpp @@ -82,7 +82,7 @@ InputHandler_SDL::~InputHandler_SDL() void InputHandler_SDL::Update(float fDeltaTime) { SDL_Event event; - while(SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_EventMask)) + while(SDL_GetEvent(event, SDL_EventMask)) { switch(event.type) { diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp index 3f608726b6..8ea9267ebc 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp @@ -83,7 +83,7 @@ bool LowLevelWindow_SDL::SetVideoMode( bool windowed, int width, int height, int * in the real branch we can remove this #if. */ #if defined(WIN32) SDL_Event e; - if(SDL_PeepEvents(&e, 1, SDL_GETEVENT, SDL_OPENGLRESETMASK)) + if(SDL_GetEvent(&e, SDL_OPENGLRESETMASK)) { LOG->Trace("New OpenGL context"); @@ -125,7 +125,7 @@ void LowLevelWindow_SDL::SwapBuffers() void LowLevelWindow_SDL::Update(float fDeltaTime) { SDL_Event event; - while(SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_VIDEORESIZEMASK)) + while(SDL_GetEvent(event, SDL_VIDEORESIZEMASK)) { switch(event.type) {