Skip to content
Permalink
Browse files

Fix bug 2034: replace printf by SDL_Log in tests; update loopwave VS …

…solution: copy missing dependency
  • Loading branch information
ferzkopp committed Aug 15, 2013
1 parent 67367be commit 65728477afc7883959afe23c7651b0fdc3e67763

File 9 of 47 in 6572847

@@ -176,6 +176,9 @@ main(int argc, char *argv[])
SDL_Event event;
Uint32 then, now, frames;

/* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);

/* Initialize parameters */
num_objects = NUM_OBJECTS;

@@ -218,8 +221,7 @@ main(int argc, char *argv[])
}
}
if (consumed < 0) {
fprintf(stderr,
"Usage: %s %s [--blend none|blend|add|mod] [--cyclecolor] [--cyclealpha]\n",
SDL_Log("Usage: %s %s [--blend none|blend|add|mod] [--cyclecolor] [--cyclealpha]\n",
argv[0], SDLTest_CommonUsage(state));
return 1;
}
@@ -268,7 +270,7 @@ main(int argc, char *argv[])
now = SDL_GetTicks();
if (now > then) {
double fps = ((double) frames * 1000) / (now - then);
printf("%2.2f frames per second\n", fps);
SDL_Log("%2.2f frames per second\n", fps);
}
return 0;
}

0 comments on commit 6572847

Please sign in to comment.