Reapply. Old SDL versions could return -1 (probably as a bug).

We might as well handle this case.



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3715 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2011-12-28 18:43:45 +00:00
parent 1d530a2ffb
commit d7ae2bbc66
+1 -1
View File
@@ -186,7 +186,7 @@ TFB_ProcessEvents ()
{ {
SDL_Event Event; SDL_Event Event;
while (SDL_PollEvent (&Event)) while (SDL_PollEvent (&Event) > 0)
{ {
/* Run through the InputEvent filter. */ /* Run through the InputEvent filter. */
ProcessInputEvent (&Event); ProcessInputEvent (&Event);