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

@@ -219,7 +219,7 @@ static void ImGui_ImplSDL2_PlatformSetImeData(ImGuiContext*, ImGuiViewport* view
{
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_SetTextInputRect(&r);