commit 7a1c3262d8cbceb3c5d744e096958da94aa72612
Author: Jonathan Dowland <jon+github@alcopop.org>
AuthorDate: Mon Apr 4 06:48:44 2016 +0100
Commit: Jonathan Dowland <jon+github@alcopop.org>
CommitDate: Mon Apr 4 12:01:36 2016 +0100
remove four SDL2-TODOs: no further work needed
SDL2 defaults to Unicode input (kinda) and repeating keys.
---
src/i_video.c | 10 ----------
textscreen/txt_sdl.c | 3 ---
2 files changed, 13 deletions(-)
diff --git a/src/i_video.c b/src/i_video.c
index 2a6bf53a..c0fd78db 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1168,16 +1168,6 @@ void I_InitGraphics(void)
memset(I_VideoBuffer, 0, SCREENWIDTH * SCREENHEIGHT);
- // We need SDL to give us translated versions of keys as well
-
- // SDL2-TODO SDL_EnableUNICODE(1);
-
- // Repeat key presses - this is what Vanilla Doom does
- // Not sure about repeat rate - probably dependent on which DOS
- // driver is used. This is good enough though.
-
- // SDL2-TODO SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
-
// clear out any events waiting at the start and center the mouse
while (SDL_PollEvent(&dummy));
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c
index c7e75008..e19d211e 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -304,7 +304,6 @@ int TXT_Init(void)
SDL_LockSurface(screenbuffer);
SDL_SetPaletteColors(screenbuffer->format->palette, ega_colors, 0, 16);
SDL_UnlockSurface(screenbuffer);
- // SDL2-TODO SDL_EnableUNICODE(1);
screendata = malloc(TXT_SCREEN_W * TXT_SCREEN_H * 2);
memset(screendata, 0, TXT_SCREEN_W * TXT_SCREEN_H * 2);
@@ -315,8 +314,6 @@ int TXT_Init(void)
// Repeat key presses so we can hold down arrows to scroll down the
// menu, for example. This is what setup.exe does.
- // SDL2-TODO SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
-
return 1;
}