mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 03:10:37 +00:00
WEBOS: Add WEBOS define
Using SDL_INIT_VIDEO flag for WebOS because without it the application won't start.
This commit is contained in:
parent
f8a73665d3
commit
72d206dc73
@ -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
1
configure
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user