From 1d530a2ffb656d73a916cfda61582c1867607fc4 Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Wed, 28 Dec 2011 18:31:23 +0000 Subject: [PATCH] Revert; SDL_PollEvent() never returns -1. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3714 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/libs/graphics/sdl/sdl_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/libs/graphics/sdl/sdl_common.c b/sc2/src/libs/graphics/sdl/sdl_common.c index 423fe0c47..5316bd7e0 100644 --- a/sc2/src/libs/graphics/sdl/sdl_common.c +++ b/sc2/src/libs/graphics/sdl/sdl_common.c @@ -186,7 +186,7 @@ TFB_ProcessEvents () { SDL_Event Event; - while (SDL_PollEvent (&Event) > 0) + while (SDL_PollEvent (&Event)) { /* Run through the InputEvent filter. */ ProcessInputEvent (&Event);