diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-07-22 03:24:28 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-07-25 14:45:49 +0200 |
commit | eb4a094e969210e07abf0cb82cd8be1fdf66af15 (patch) | |
tree | c2461a9991bb2fb22db719bef7907439ca901040 /crawl-ref/source/windowmanager-sdl.cc | |
parent | 5780157ce8de3a32fb7a5283859fa5c8db00a216 (diff) | |
download | crawl-ref-eb4a094e969210e07abf0cb82cd8be1fdf66af15.tar.gz crawl-ref-eb4a094e969210e07abf0cb82cd8be1fdf66af15.zip |
SDL 2.0 always obeys system key repeat settings.
The option to set it is neither needed nor supported. Which is good if
you want consistency with about every other program on your box, and bad
if you want to fine-tune Crawl differently.
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 880335db83..906dfa827e 100644 --- a/crawl-ref/source/windowmanager-sdl.cc +++ b/crawl-ref/source/windowmanager-sdl.cc @@ -333,6 +333,7 @@ int SDLWrapper::init(coord_def *m_windowsz) SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); glDebug("SDL_GL_ALPHA_SIZE 8"); +#if !SDL_VERSION_ATLEAST(2,0,0) if (Options.tile_key_repeat_delay > 0) { const int repdelay = Options.tile_key_repeat_delay; @@ -346,6 +347,7 @@ int SDLWrapper::init(coord_def *m_windowsz) printf("Failed to set key repeat mode: %s\n", SDL_GetError()); #endif } +#endif #ifdef USE_GLES #ifdef __ANDROID__ |