mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-25 14:09:10 +00:00
Fixed event spam caused by repeated calls to IME_SetTextInputRect()
This commit is contained in:
parent
42d8db7e34
commit
e324c7d692
1 changed files with 4 additions and 0 deletions
|
@ -696,6 +696,10 @@ static void IME_SetTextInputRect(SDL_VideoData *videodata, const SDL_Rect *rect)
|
|||
{
|
||||
HIMC himc = 0;
|
||||
|
||||
if (SDL_memcmp(rect, &videodata->ime_rect, sizeof(*rect)) == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
videodata->ime_rect = *rect;
|
||||
|
||||
himc = ImmGetContext(videodata->ime_hwnd_current);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue