test/testdraw2.c
changeset 3371 438ba87e9578
parent 2902 83c3a4b0e421
child 3536 0267b8b1595c
equal deleted inserted replaced
3370:3e0f51e60fa2 3371:438ba87e9578
   270 
   270 
   271             SDL_RenderPresent();
   271             SDL_RenderPresent();
   272         }
   272         }
   273     }
   273     }
   274 
   274 
       
   275     CommonQuit(state);
       
   276 
   275     /* Print out some timing information */
   277     /* Print out some timing information */
   276     now = SDL_GetTicks();
   278     now = SDL_GetTicks();
   277     if (now > then) {
   279     if (now > then) {
   278         double fps = ((double) frames * 1000) / (now - then);
   280         double fps = ((double) frames * 1000) / (now - then);
   279         printf("%2.2f frames per second\n", fps);
   281         printf("%2.2f frames per second\n", fps);