aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp4
-rw-r--r--backends/graphics/sdl/sdl-graphics.cpp4
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);