log SDL version
This commit is contained in:
@@ -295,6 +295,9 @@ RageDisplay_D3D::RageDisplay_D3D( VideoModeParams p )
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
SetVideoMode( p );
|
SetVideoMode( p );
|
||||||
|
|
||||||
|
const SDL_version *ver = SDL_Linked_Version();
|
||||||
|
LOG->Info( "SDL version: %i.%i.%i", ver->major, ver->minor, ver->patch );
|
||||||
} catch(...) {
|
} catch(...) {
|
||||||
// Clean up; ~RageDisplay will not be called.
|
// Clean up; ~RageDisplay will not be called.
|
||||||
#if defined _WINDOWS
|
#if defined _WINDOWS
|
||||||
|
|||||||
@@ -154,6 +154,14 @@ CString LowLevelWindow_SDL::TryVideoMode( RageDisplay::VideoModeParams p, bool &
|
|||||||
|
|
||||||
bNewDeviceOut = true; // always a new context because we're resetting SDL_Video
|
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
|
/* 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
|
* Windows. Eventually, it'll probably get upstreamed, and once it's
|
||||||
* in the real branch we can remove this #if. */
|
* in the real branch we can remove this #if. */
|
||||||
|
|||||||
Reference in New Issue
Block a user