shithub: choc

Download patch

ref: 7a1c3262d8cbceb3c5d744e096958da94aa72612
parent: 5ad3fa6c5ee4731f8688931ff76595df55dd9bc5
author: Jonathan Dowland <jon+github@alcopop.org>
date: Mon Apr 4 02:48:44 EDT 2016

remove four SDL2-TODOs: no further work needed

SDL2 defaults to Unicode input (kinda) and repeating keys.

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1168,16 +1168,6 @@
 
     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));
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -304,7 +304,6 @@
     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);
@@ -314,8 +313,6 @@
 
     // 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;
 }