Преглед изворни кода

Merge pull request #582 from pooerh/next

Fixed bug with Linux platform event polling
Sean Paul Taylor пре 13 година
родитељ
комит
32097766d4
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      gameplay/src/PlatformLinux.cpp

+ 2 - 3
gameplay/src/PlatformLinux.cpp

@@ -604,10 +604,9 @@ int Platform::enterMessagePump()
     // Message loop.
     while (true)
     {
-        int ret = poll( xpolls, 1, 16 );
-
+        poll( xpolls, 1, 16 );
         // handle all pending events in one block 
-        while (ret && XPending(__display))
+        while (XPending(__display))    
         {
            XNextEvent(__display, &evt);