mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Fixed IME cursor location (thanks @zturtleman!)
This commit is contained in:
@@ -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
|
// 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->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->w = window->text_input_rect.h;
|
||||||
cursor->h = 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
|
// 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.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.w = window->text_input_rect.h;
|
||||||
ibus_cursor_rect.h = window->text_input_rect.h;
|
ibus_cursor_rect.h = window->text_input_rect.h;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user