Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

void OSystem_GP2X::initSDL (  ) [virtual]

Initialze the SDL library.

Reimplemented from OSystem_SDL.

Definition at line 146 of file gp2x.cpp.

                           {
      // Check if SDL has not been initialized
      if (!_initedSDL) {
            uint32 sdlFlags = SDL_INIT_EVENTTHREAD;
            if (ConfMan.hasKey("disable_sdl_parachute"))
                  sdlFlags |= SDL_INIT_NOPARACHUTE;

            // Initialize SDL (SDL Subsystems are initiliazed in the corresponding sdl managers)
            if (SDL_Init(sdlFlags) == -1)
                  error("Could not initialize SDL: %s", SDL_GetError());

            // Enable unicode support if possible
            SDL_EnableUNICODE(1);

            _initedSDL = true;
      }
}

Generated by  Doxygen 1.6.0   Back to index