mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 06:32:23 +01:00
Show IME candidate list in Windows (#14942)
This commit is contained in:
parent
53a50e0b0d
commit
a3838dd0e8
@ -343,6 +343,12 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters ¶m) :
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user