mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +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");
|
SDL_SetHint(SDL_HINT_APP_NAME, "Minetest");
|
||||||
#endif
|
#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;
|
u32 flags = SDL_INIT_TIMER | SDL_INIT_EVENTS;
|
||||||
if (CreationParams.DriverType != video::EDT_NULL)
|
if (CreationParams.DriverType != video::EDT_NULL)
|
||||||
flags |= SDL_INIT_VIDEO;
|
flags |= SDL_INIT_VIDEO;
|
||||||
|
Loading…
Reference in New Issue
Block a user