diff options
| author | Norbert Lange | 2009-06-12 14:02:21 +0000 | 
|---|---|---|
| committer | Norbert Lange | 2009-06-12 14:02:21 +0000 | 
| commit | 14f1960c8fd2a012de8c800143a8c9cbed9b8afb (patch) | |
| tree | 1955b260cde27a2b5a4e04850cb4e54a11a6e0fb /backends/platform | |
| parent | ef7840994da935495a7f68cd376c3f2341f4f706 (diff) | |
| download | scummvm-rg350-14f1960c8fd2a012de8c800143a8c9cbed9b8afb.tar.gz scummvm-rg350-14f1960c8fd2a012de8c800143a8c9cbed9b8afb.tar.bz2 scummvm-rg350-14f1960c8fd2a012de8c800143a8c9cbed9b8afb.zip  | |
sdl.cpp, main.cpp:
	Made modifications dependend on compiletime-variable TFMX_CMDLINE_TOOL.
scumm.vcproj, scummvm-tfmx.sln, scummvm-tfmx.vcproj:
	enabled Scumm-Engine
tfmx.cpp:
	Some small cleanups and corrections
svn-id: r41478
Diffstat (limited to 'backends/platform')
| -rw-r--r-- | backends/platform/sdl/sdl.cpp | 19 | 
1 files changed, 12 insertions, 7 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index e65f4361ce..343a1ac6f4 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -90,7 +90,11 @@ void OSystem_SDL::initBackend() {  	int joystick_num = ConfMan.getInt("joystick_num");  	joystick_num = 0; -	uint32 sdlFlags = /* SDL_INIT_VIDEO | */ SDL_INIT_AUDIO /*| SDL_INIT_TIMER*/; +#if !defined(TFMX_CMDLINE_TOOL) +	uint32 sdlFlags =  SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER; +#else +	uint32 sdlFlags =  /*SDL_INIT_VIDEO |*/ SDL_INIT_AUDIO | SDL_INIT_TIMER; +#endif  	if (ConfMan.hasKey("disable_sdl_parachute"))  		sdlFlags |= SDL_INIT_NOPARACHUTE; @@ -108,11 +112,12 @@ void OSystem_SDL::initBackend() {  	if (SDL_Init(sdlFlags) == -1) {  		error("Could not initialize SDL: %s", SDL_GetError());  	} -/* -	_graphicsMutex = createMutex(); -	SDL_ShowCursor(SDL_DISABLE); +	_graphicsMutex = createMutex(); +#if !defined(TFMX_CMDLINE_TOOL) +	SDL_ShowCursor(SDL_DISABLE); +	  	// Enable unicode support if possible  	SDL_EnableUNICODE(1); @@ -164,13 +169,13 @@ void OSystem_SDL::initBackend() {  	_savefile = new DefaultSaveFileManager();  #endif  	} -*/ +#endif  	// Create and hook up the mixer, if none exists yet (we check for this to  	// allow subclasses to provide their own).  	if (_mixer == 0) {  		setupMixer();  	} -/* +  	// Create and hook up the timer manager, if none exists yet (we check for  	// this to allow subclasses to provide their own).  	if (_timer == 0) { @@ -184,7 +189,7 @@ void OSystem_SDL::initBackend() {  		_timer = new DefaultTimerManager();  		_timerID = SDL_AddTimer(10, &timer_handler, _timer);  	} -*/ +  	// Invoke parent implementation of this method  	OSystem::initBackend();  | 
