mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
input_engine_pinyin_add_candidate
This commit is contained in:
parent
ca6229e489
commit
5994df12ac
@ -1,5 +1,8 @@
|
||||
# 最新动态
|
||||
|
||||
2022/05/15
|
||||
* 完善 input\_engine\_pinyin\_add\_candidate (感谢俊圣提供补丁)
|
||||
|
||||
2022/05/14
|
||||
* 修复opengl模式下无法渲染缺少ascent、descent信息字体的问题,并统一agge模式下的效果(感谢雨欣提供补丁)。
|
||||
* 完善 input\_engine\_pinyin\_add\_candidate (感谢俊圣提供补丁)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user