/*
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
if ((x1 == x2) && (y1 == y2))
return 0;
- SDLTest_Log("adding line (%d, %d), (%d, %d)\n", x1, y1, x2, y2);
+ SDL_Log("adding line (%d, %d), (%d, %d)\n", x1, y1, x2, y2);
lines[num_lines].x = x1;
lines[num_lines].y = y1;
lines[num_lines].w = x2;
if (y1 > y2)
SWAP(int, y1, y2);
- SDLTest_Log("adding rect (%d, %d), (%d, %d) [%dx%d]\n", x1, y1, x2, y2,
+ SDL_Log("adding rect (%d, %d), (%d, %d) [%dx%d]\n", x1, y1, x2, y2,
x2 - x1, y2 - y1);
rects[num_rects].x = x1;
#endif
}
int
-SDL_main(int argc, char *argv[])
+main(int argc, char *argv[])
{
int i;
Uint32 then, now, frames;
}
}
if (consumed < 0) {
- SDLTest_Log("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;
}
now = SDL_GetTicks();
if (now > then) {
double fps = ((double) frames * 1000) / (now - then);
- SDLTest_Log("%2.2f frames per second\n", fps);
+ SDL_Log("%2.2f frames per second\n", fps);
}
return 0;
}