Clean up some of the SDL version number spam at startup.

git-svn-id: https://svn.eduke32.com/eduke32@5536 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2016-01-11 05:05:16 +00:00
parent 15b57d4dcf
commit 88e08319b9

View file

@ -475,9 +475,13 @@ int32_t sdlayer_checkversion(void)
SDL_GetVersion(&linked);
SDL_VERSION(&compiled);
initprintf("Initializing SDL system interface "
"(compiled against SDL version %d.%d.%d, found version %d.%d.%d)\n",
compiled.major, compiled.minor, compiled.patch, linked.major, linked.minor, linked.patch);
if (!Bmemcmp(&compiled, &linked, sizeof(SDL_version)))
initprintf("Initializing SDL %d.%d.%d\n",
compiled.major, compiled.minor, compiled.patch);
else
initprintf("Initializing SDL %d.%d.%d"
"(built against SDL version %d.%d.%d)\n",
linked.major, linked.minor, linked.patch, compiled.major, compiled.minor, compiled.patch);
if (SDL_VERSIONNUM(linked.major, linked.minor, linked.patch) < SDL_REQUIREDVERSION)
{
@ -521,8 +525,6 @@ int32_t initsystem(void)
if (!novideo)
{
const char *drvname = SDL_GetVideoDriver(0);
#ifdef USE_OPENGL
if (loadgldriver(getenv("BUILD_GLDRV")))
{
@ -531,9 +533,12 @@ int32_t initsystem(void)
}
#endif
#ifndef _WIN32
const char *drvname = SDL_GetVideoDriver(0);
if (drvname)
initprintf("Using \"%s\" video driver\n", drvname);
#endif
wm_setapptitle(apptitle);
}