diff options
author | Johannes Schickel | 2013-10-20 23:00:28 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-10-23 22:58:38 +0200 |
commit | 1a56b521b598efcb1587dd8934b6564cf5799b7b (patch) | |
tree | 6b72fdad58a1748136497d31c7d1d3de8dd765b2 /backends/platform/openpandora/op-backend.cpp | |
parent | 6e46e9dfaf141fda10af798d9770b9f2b0555575 (diff) | |
download | scummvm-rg350-1a56b521b598efcb1587dd8934b6564cf5799b7b.tar.gz scummvm-rg350-1a56b521b598efcb1587dd8934b6564cf5799b7b.tar.bz2 scummvm-rg350-1a56b521b598efcb1587dd8934b6564cf5799b7b.zip |
SDL: Always initialize video subsystem in initSDL.
Diffstat (limited to 'backends/platform/openpandora/op-backend.cpp')
-rw-r--r-- | backends/platform/openpandora/op-backend.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/backends/platform/openpandora/op-backend.cpp b/backends/platform/openpandora/op-backend.cpp index 354aa24b24..4350d697e2 100644 --- a/backends/platform/openpandora/op-backend.cpp +++ b/backends/platform/openpandora/op-backend.cpp @@ -160,7 +160,7 @@ void OSystem_OP::initSDL() { // Check if SDL has not been initialized if (!_initedSDL) { - uint32 sdlFlags = SDL_INIT_EVENTTHREAD; + uint32 sdlFlags = SDL_INIT_EVENTTHREAD | SDL_INIT_VIDEO; if (ConfMan.hasKey("disable_sdl_parachute")) sdlFlags |= SDL_INIT_NOPARACHUTE; @@ -168,6 +168,12 @@ void OSystem_OP::initSDL() { if (SDL_Init(sdlFlags) == -1) error("Could not initialize SDL: %s", SDL_GetError()); + // Enable unicode support if possible + SDL_EnableUNICODE(1); + + // Disable OS cursor + SDL_ShowCursor(SDL_DISABLE); + _initedSDL = true; } } |