Explorar o código

Fixed bug with Linux platform event polling

pooerh %!s(int64=13) %!d(string=hai) anos
pai
achega
8621298a2c
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  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);