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:
parent
be08175077
commit
e4666d2baf
2 changed files with 12 additions and 5 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue