From 88e08319b949131bb505f710daa1bfacfb9b970f Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 11 Jan 2016 05:05:16 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/sdlayer.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 0fb357a7c..1016ad32a 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -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); }