From: <Mee...@us...> - 2011-12-28 18:43:51
|
Revision: 3715 http://sc2.svn.sourceforge.net/sc2/?rev=3715&view=rev Author: Meep-Eep Date: 2011-12-28 18:43:45 +0000 (Wed, 28 Dec 2011) Log Message: ----------- Reapply. Old SDL versions could return -1 (probably as a bug). We might as well handle this case. Modified Paths: -------------- trunk/sc2/src/libs/graphics/sdl/sdl_common.c Modified: trunk/sc2/src/libs/graphics/sdl/sdl_common.c =================================================================== --- trunk/sc2/src/libs/graphics/sdl/sdl_common.c 2011-12-28 18:31:23 UTC (rev 3714) +++ trunk/sc2/src/libs/graphics/sdl/sdl_common.c 2011-12-28 18:43:45 UTC (rev 3715) @@ -186,7 +186,7 @@ { SDL_Event Event; - while (SDL_PollEvent (&Event)) + while (SDL_PollEvent (&Event) > 0) { /* Run through the InputEvent filter. */ ProcessInputEvent (&Event); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |