Backends: SDL2/SDL3: adjusted IME offset to match other backends and master branch. (#6071, #1953)

Amend 1668693bc
This commit is contained in:
ocornut
2026-01-08 14:41:17 +01:00
parent 8103582b65
commit ca46e5d959
3 changed files with 3 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ static void ImGui_ImplSDL3_UpdateIme()
viewport_pos = viewport->Pos;
SDL_Rect r;
r.x = (int)(data->InputPos.x - viewport_pos.x);
r.y = (int)(data->InputPos.y - viewport_pos.y + data->InputLineHeight);
r.y = (int)(data->InputPos.y - viewport_pos.y);
r.w = 1;
r.h = (int)data->InputLineHeight;
SDL_SetTextInputArea(window, &r, 0);