WEBOS: Add WEBOS define

Using SDL_INIT_VIDEO flag for WebOS because without it the application
won't start.
This commit is contained in:
Klaus Reimer 2011-04-02 22:47:49 +02:00 committed by Max Horn
parent f8a73665d3
commit 72d206dc73
2 changed files with 6 additions and 0 deletions

View file

@ -213,6 +213,11 @@ void OSystem_SDL::initSDL() {
uint32 sdlFlags = 0;
if (ConfMan.hasKey("disable_sdl_parachute"))
sdlFlags |= SDL_INIT_NOPARACHUTE;
#ifdef WEBOS
// WebOS needs this flag or otherwise the application won't start
sdlFlags |= SDL_INIT_VIDEO;
#endif
// Initialize SDL (SDL Subsystems are initiliazed in the corresponding sdl managers)
if (SDL_Init(sdlFlags) == -1)