1.1 --- a/test/testdraw2.c Mon Aug 12 22:00:21 2013 -0700
1.2 +++ b/test/testdraw2.c Wed Aug 14 23:30:10 2013 -0700
1.3 @@ -176,6 +176,9 @@
1.4 SDL_Event event;
1.5 Uint32 then, now, frames;
1.6
1.7 + /* Enable standard application logging */
1.8 + SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
1.9 +
1.10 /* Initialize parameters */
1.11 num_objects = NUM_OBJECTS;
1.12
1.13 @@ -218,8 +221,7 @@
1.14 }
1.15 }
1.16 if (consumed < 0) {
1.17 - fprintf(stderr,
1.18 - "Usage: %s %s [--blend none|blend|add|mod] [--cyclecolor] [--cyclealpha]\n",
1.19 + SDL_Log("Usage: %s %s [--blend none|blend|add|mod] [--cyclecolor] [--cyclealpha]\n",
1.20 argv[0], SDLTest_CommonUsage(state));
1.21 return 1;
1.22 }
1.23 @@ -268,7 +270,7 @@
1.24 now = SDL_GetTicks();
1.25 if (now > then) {
1.26 double fps = ((double) frames * 1000) / (now - then);
1.27 - printf("%2.2f frames per second\n", fps);
1.28 + SDL_Log("%2.2f frames per second\n", fps);
1.29 }
1.30 return 0;
1.31 }