1
0
Fork 0

basic SDL 1.2.14 support.(Still testing)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3546
This commit is contained in:
Peter Veenstra 2010-02-10 20:33:31 +00:00
parent be08175077
commit e4666d2baf
2 changed files with 12 additions and 5 deletions

View file

@ -1717,7 +1717,9 @@ int main(int argc, char* argv[]) {
LOG_MSG("---");
/* Init SDL */
putenv(const_cast<char*>("SDL_DISABLE_LOCK_KEYS=1")); //Workaround debian/ubuntu fixes for SDL.
#if SDL_VERSION_ATLEAST(1, 2, 14)
putenv(const_cast<char*>("SDL_DISABLE_LOCK_KEYS=1"));
#endif
if ( SDL_Init( SDL_INIT_AUDIO|SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_CDROM
|SDL_INIT_NOPARACHUTE
) < 0 ) E_Exit("Can't init SDL %s",SDL_GetError());