diff options
author | Willem Jan Palenstijn | 2010-11-28 17:12:43 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2010-11-28 17:12:43 +0000 |
commit | 66cb595f224f15f0e71b9d695bdaa2549158fbae (patch) | |
tree | abee7b85747e808a110ce91cc544345cf8c2a141 | |
parent | 54b756e1baf67d0f6f7a8abea4ae3e656297a5c7 (diff) | |
download | scummvm-rg350-66cb595f224f15f0e71b9d695bdaa2549158fbae.tar.gz scummvm-rg350-66cb595f224f15f0e71b9d695bdaa2549158fbae.tar.bz2 scummvm-rg350-66cb595f224f15f0e71b9d695bdaa2549158fbae.zip |
SDL: re-enable unicode after graphics init
svn-id: r54531
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 4 | ||||
-rw-r--r-- | backends/graphics/sdl/sdl-graphics.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 447bc77afe..940dd8089a 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -44,6 +44,10 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager() error("Could not initialize SDL: %s", SDL_GetError()); } + // This is also called in initSDL(), but initializing graphics + // may reset it. + SDL_EnableUNICODE(1); + // Disable OS cursor SDL_ShowCursor(SDL_DISABLE); diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp index 8e36077ecb..4982336e9f 100644 --- a/backends/graphics/sdl/sdl-graphics.cpp +++ b/backends/graphics/sdl/sdl-graphics.cpp @@ -148,6 +148,10 @@ SdlGraphicsManager::SdlGraphicsManager(SdlEventSource *sdlEventSource) error("Could not initialize SDL: %s", SDL_GetError()); } + // This is also called in initSDL(), but initializing graphics + // may reset it. + SDL_EnableUNICODE(1); + // allocate palette storage _currentPalette = (SDL_Color *)calloc(sizeof(SDL_Color), 256); _cursorPalette = (SDL_Color *)calloc(sizeof(SDL_Color), 256); |