diff options
author | Klaus Reimer | 2011-04-02 22:47:49 +0200 |
---|---|---|
committer | Max Horn | 2011-04-12 11:05:07 +0200 |
commit | 72d206dc738b41379d468f9f256c3225e20425f0 (patch) | |
tree | 9efef7b24d685ea4b826deaa81c978e786afcdf6 /backends/platform | |
parent | f8a73665d3c23e1b0c0176af76a1f5a8bf36befe (diff) | |
download | scummvm-rg350-72d206dc738b41379d468f9f256c3225e20425f0.tar.gz scummvm-rg350-72d206dc738b41379d468f9f256c3225e20425f0.tar.bz2 scummvm-rg350-72d206dc738b41379d468f9f256c3225e20425f0.zip |
WEBOS: Add WEBOS define
Using SDL_INIT_VIDEO flag for WebOS because without it the application
won't start.
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index bddb48ca95..d0036b47ff 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -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) |