input_engine_pinyin_add_candidate

This commit is contained in:
lixianjing 2022-05-15 06:42:14 +08:00
parent ca6229e489
commit 5994df12ac
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# 最新动态
2022/05/15
* 完善 input\_engine\_pinyin\_add\_candidate (感谢俊圣提供补丁)
2022/05/14
* 修复opengl模式下无法渲染缺少ascent、descent信息字体的问题并统一agge模式下的效果感谢雨欣提供补丁
* 完善 input\_engine\_pinyin\_add\_candidate (感谢俊圣提供补丁)

View File

@ -48,7 +48,9 @@ static ret_t input_engine_pinyin_add_candidate(input_engine_t* engine, uint32_t
char str[MAX_WORD_LEN * 4 + 1] = {0};
char16 str16[MAX_WORD_LEN + 1];
im_get_candidate(index, str16, MAX_WORD_LEN);
if (im_get_candidate(index, str16, MAX_WORD_LEN) == NULL) {
return RET_OK;
}
if (sizeof(char16) == sizeof(wchar_t)) {
tk_utf8_from_utf16((wchar_t*)str16, str, sizeof(str) - 1);