Skip to content
Browse files

Log the SDL version

  • Loading branch information...
1 parent 264fdfa commit 368bf2819c774b09b230037263ae2808ed484f25 @dhewg dhewg committed Jul 20, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 neo/framework/Common.cpp
View
9 neo/framework/Common.cpp
@@ -2765,7 +2765,14 @@ void idCommonLocal::Init( int argc, char **argv ) {
idCVar::RegisterStaticVars();
// print engine version
- Printf( "%s\n", version.string );
+#if SDL_VERSION_ATLEAST(2, 0, 0)
+ SDL_version sdlv;
+ SDL_GetVersion(&sdlv);
+#else
+ SDL_version sdlv = *SDL_Linked_Version();
+#endif
+ Printf( "%s using SDL v%u.%u.%u\n",
+ version.string, sdlv.major, sdlv.minor, sdlv.patch );
// initialize key input/binding, done early so bind command exists
idKeyInput::Init();

0 comments on commit 368bf28

Please sign in to comment.
Something went wrong with that request. Please try again.