From 34b3862833b98bc956040a5bd6b7a57bd07cd4a3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 14 Jun 2004 05:19:42 +0000 Subject: [PATCH] log SDL version --- stepmania/src/RageDisplay_D3D.cpp | 3 +++ stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 64ca3ab29c..a14f19e58a 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -295,6 +295,9 @@ RageDisplay_D3D::RageDisplay_D3D( VideoModeParams p ) #endif SetVideoMode( p ); + + const SDL_version *ver = SDL_Linked_Version(); + LOG->Info( "SDL version: %i.%i.%i", ver->major, ver->minor, ver->patch ); } catch(...) { // Clean up; ~RageDisplay will not be called. #if defined _WINDOWS diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp index db11e66545..ca2a048657 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp @@ -154,6 +154,14 @@ CString LowLevelWindow_SDL::TryVideoMode( RageDisplay::VideoModeParams p, bool & bNewDeviceOut = true; // always a new context because we're resetting SDL_Video + static bool bLogged = false; + if( !bLogged ) + { + bLogged = true; + const SDL_version *ver = SDL_Linked_Version(); + LOG->Info( "SDL version: %i.%i.%i", ver->major, ver->minor, ver->patch ); + } + /* XXX: This event only exists in the SDL tree, and is only needed in * Windows. Eventually, it'll probably get upstreamed, and once it's * in the real branch we can remove this #if. */