comparison test/testdraw2.c @ 3371:438ba87e9578

Call CommonQuit() at exit has been added.
author Mike Gorchak <lestat@i.com.ua>
date Sat, 10 Oct 2009 13:22:05 +0000
parents 83c3a4b0e421
children 0267b8b1595c
comparison
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);