Show IME candidate list in Windows (#14942)

This commit is contained in:
y5nw 2024-08-12 15:34:37 +02:00 committed by GitHub
parent 53a50e0b0d
commit a3838dd0e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -343,6 +343,12 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters &param) :
SDL_SetHint(SDL_HINT_APP_NAME, "Minetest");
#endif
// Set IME hints
SDL_SetHint(SDL_HINT_IME_INTERNAL_EDITING, "1");
#if defined(SDL_HINT_IME_SHOW_UI)
SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1");
#endif
u32 flags = SDL_INIT_TIMER | SDL_INIT_EVENTS;
if (CreationParams.DriverType != video::EDT_NULL)
flags |= SDL_INIT_VIDEO;