From: Timo Korvola Date: Mon, 26 Mar 2018 23:19:56 +0000 (+0300) Subject: Set SDL_HINT_IME_INTERNAL_EDITING. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=c185cb235133c8730e9aa5f82a955b98fab1a1f3;p=liskon_frotz.git Set SDL_HINT_IME_INTERNAL_EDITING. --- diff --git a/src/sdl/sf_video.c b/src/sdl/sf_video.c index 25d4b04..4523d26 100644 --- a/src/sdl/sf_video.c +++ b/src/sdl/sf_video.c @@ -417,6 +417,9 @@ void sf_initvideo( int W, int H, int full) if ( SDL_Init(initflags) < 0 ) { os_fatal("Couldn't initialize SDL: %s", SDL_GetError()); } + /* We don't handle text edit events. Not that I know why anyone would + want to use such an IME with Frotz. */ + SDL_SetHint(SDL_HINT_IME_INTERNAL_EDITING, "1"); CLEANREG(cleanvideo);