diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-07-22 03:22:13 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-07-25 14:45:49 +0200 |
commit | 5780157ce8de3a32fb7a5283859fa5c8db00a216 (patch) | |
tree | 2ebf362435b7026db015b881445a98b07ceba4b2 /crawl-ref/source/windowmanager-sdl.cc | |
parent | ca954cca6dff83fc92518748848fc597e5f535be (diff) | |
download | crawl-ref-5780157ce8de3a32fb7a5283859fa5c8db00a216.tar.gz crawl-ref-5780157ce8de3a32fb7a5283859fa5c8db00a216.zip |
No need to enable Unicode in SDL 2.0.
We need to adjust keyboard input to not use dropped interfaces, though.
Diffstat (limited to 'crawl-ref/source/windowmanager-sdl.cc')
-rw-r--r-- | crawl-ref/source/windowmanager-sdl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/windowmanager-sdl.cc b/crawl-ref/source/windowmanager-sdl.cc index 82420e0379..880335db83 100644 --- a/crawl-ref/source/windowmanager-sdl.cc +++ b/crawl-ref/source/windowmanager-sdl.cc @@ -316,7 +316,9 @@ int SDLWrapper::init(coord_def *m_windowsz) _desktop_width = video_info->current_w; _desktop_height = video_info->current_h; +#if !SDL_VERSION_ATLEAST(2,0,0) SDL_EnableUNICODE(true); +#endif SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); glDebug("SDL_GL_DOUBLEBUFFER"); |