aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Reimer2011-04-02 22:47:49 +0200
committerMax Horn2011-04-12 11:05:07 +0200
commit72d206dc738b41379d468f9f256c3225e20425f0 (patch)
tree9efef7b24d685ea4b826deaa81c978e786afcdf6
parentf8a73665d3c23e1b0c0176af76a1f5a8bf36befe (diff)
downloadscummvm-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.
-rw-r--r--backends/platform/sdl/sdl.cpp5
-rwxr-xr-xconfigure1
2 files changed, 6 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)
diff --git a/configure b/configure
index da3640ac99..c732ecce44 100755
--- a/configure
+++ b/configure
@@ -1670,6 +1670,7 @@ case $_host_os in
webos)
CXXFLAGS="$CXXFLAGS --sysroot=$WEBOS_PDK/arm-gcc/sysroot"
CXXFLAGS="$CXXFLAGS -I$WEBOS_PDK/include/SDL"
+ CXXFLAGS="$CXXFLAGS -DWEBOS"
LDFLAGS="$LDFLAGS -L$WEBOS_PDK/device/lib"
LDFLAGS="$LDFLAGS -Wl,--allow-shlib-undefined"
LIBS="$LIBS -lSDL -lpdl"