remove SDL version check; we only required 1.2.6 due to an alpha blit
bug in 1.2.5, and we no longer use SDL's blits
This commit is contained in:
@@ -664,20 +664,6 @@ RageDisplay *CreateDisplay()
|
|||||||
RageException::Throw( error );
|
RageException::Throw( error );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CheckSDLVersion( int major, int minor, int patch )
|
|
||||||
{
|
|
||||||
const SDL_version *ver = SDL_Linked_Version();
|
|
||||||
if( ver->major > major ||
|
|
||||||
(ver->major == major && ver->minor > minor) ||
|
|
||||||
(ver->major == major && ver->minor == minor && ver->patch >= patch))
|
|
||||||
return;
|
|
||||||
|
|
||||||
RageException::Throw( "SDL %i.%i.%i is required, but you only appear to "
|
|
||||||
"have SDL %i.%i.%i installed. Please upgrade your installation of SDL or download "
|
|
||||||
"it from:\n\n\thttp://www.libsdl.org/",
|
|
||||||
major, minor, patch, ver->major, ver->minor, ver->patch );
|
|
||||||
}
|
|
||||||
|
|
||||||
static void RestoreAppPri()
|
static void RestoreAppPri()
|
||||||
{
|
{
|
||||||
if(!ChangeAppPri())
|
if(!ChangeAppPri())
|
||||||
@@ -1005,8 +991,6 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
srand( time(NULL) ); // seed number generator
|
srand( time(NULL) ); // seed number generator
|
||||||
|
|
||||||
CheckSDLVersion( 1,2,6 );
|
|
||||||
|
|
||||||
if( PREFSMAN->m_bFirstRun )
|
if( PREFSMAN->m_bFirstRun )
|
||||||
OnFirstRun();
|
OnFirstRun();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user