SDL_PollEvent may return -1. Handle this.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3713 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -186,7 +186,7 @@ TFB_ProcessEvents ()
|
||||
{
|
||||
SDL_Event Event;
|
||||
|
||||
while (SDL_PollEvent (&Event))
|
||||
while (SDL_PollEvent (&Event) > 0)
|
||||
{
|
||||
/* Run through the InputEvent filter. */
|
||||
ProcessInputEvent (&Event);
|
||||
|
||||
Reference in New Issue
Block a user