Fixed IME cursor location (thanks @zturtleman!)
This commit is contained in:
parent
50ae47af5e
commit
c347bee7b8
@ -413,7 +413,7 @@ void SDL_Fcitx_UpdateTextInputArea(SDL_Window *window)
|
||||
|
||||
// We'll use a square at the text input cursor location for the cursor_rect
|
||||
cursor->x = window->text_input_rect.x + window->text_input_cursor;
|
||||
cursor->y = window->text_input_rect.x;
|
||||
cursor->y = window->text_input_rect.y;
|
||||
cursor->w = window->text_input_rect.h;
|
||||
cursor->h = window->text_input_rect.h;
|
||||
|
||||
|
@ -694,7 +694,7 @@ void SDL_IBus_UpdateTextInputArea(SDL_Window *window)
|
||||
|
||||
// We'll use a square at the text input cursor location for the ibus_cursor
|
||||
ibus_cursor_rect.x = window->text_input_rect.x + window->text_input_cursor;
|
||||
ibus_cursor_rect.y = window->text_input_rect.x;
|
||||
ibus_cursor_rect.y = window->text_input_rect.y;
|
||||
ibus_cursor_rect.w = window->text_input_rect.h;
|
||||
ibus_cursor_rect.h = window->text_input_rect.h;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user