test/testgl.c
changeset 2318 0c653886cce7
parent 2267 c785543d1843
child 2319 5835745560bf
equal deleted inserted replaced
2317:f537a293b3da 2318:0c653886cce7
   664         if (slowly) {
   664         if (slowly) {
   665             SDL_Delay(20);
   665             SDL_Delay(20);
   666         }
   666         }
   667 
   667 
   668         /* Check if there's a pending event. */
   668         /* Check if there's a pending event. */
   669         while (SDL_PollEvent(&event)) {
   669         while (!done && SDL_PollEvent(&event)) {
   670             done = HandleEvent(&event);
   670             done = HandleEvent(&event);
   671         }
   671         }
   672         ++frames;
   672         ++frames;
   673     }
   673     }
   674 
   674