diff options
| author | Johannes Schickel | 2013-10-22 12:24:20 +0200 | 
|---|---|---|
| committer | Kamil Zbróg | 2013-10-24 12:59:16 +0100 | 
| commit | a6f0d090cfe372484af05a528bead36021cc6e4d (patch) | |
| tree | fb74853a689f72509b2234b9d38f1faf1c14d7c6 /backends/platform/sdl | |
| parent | ce92499e470f18ae8132ead53cda24f9516fe8e4 (diff) | |
| download | scummvm-rg350-a6f0d090cfe372484af05a528bead36021cc6e4d.tar.gz scummvm-rg350-a6f0d090cfe372484af05a528bead36021cc6e4d.tar.bz2 scummvm-rg350-a6f0d090cfe372484af05a528bead36021cc6e4d.zip  | |
SDL: Reduce code duplication a bit.
Now instead of initializing this in OSystem_SDL::initSDL (and in subclasses
overwriting this) we simply initialize it in OSystem_SDL::init.
Diffstat (limited to 'backends/platform/sdl')
| -rw-r--r-- | backends/platform/sdl/sdl.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 3272033df9..c240727069 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -126,6 +126,12 @@ void OSystem_SDL::init() {  	// Initialize SDL  	initSDL(); +	// Enable unicode support if possible +	SDL_EnableUNICODE(1); + +	// Disable OS cursor +	SDL_ShowCursor(SDL_DISABLE); +  	if (!_logger)  		_logger = new Backends::Log::Log(this); @@ -268,12 +274,6 @@ void OSystem_SDL::initSDL() {  		if (SDL_Init(sdlFlags) == -1)  			error("Could not initialize SDL: %s", SDL_GetError()); -		// Enable unicode support if possible -		SDL_EnableUNICODE(1); - -		// Disable OS cursor -		SDL_ShowCursor(SDL_DISABLE); -  		_initedSDL = true;  	}  }  | 
