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)

1
configure vendored
View File

@ -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"