Selaa lähdekoodia

Merge pull request #582 from pooerh/next

Fixed bug with Linux platform event polling
Sean Paul Taylor 13 vuotta sitten
vanhempi
sitoutus
32097766d4
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      gameplay/src/PlatformLinux.cpp

+ 2 - 3
gameplay/src/PlatformLinux.cpp

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