You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Easily reproducible because the error is consistently there at the same line.
For confirmation, just remark the above mentioned line and everything builds fine.
The text was updated successfully, but these errors were encountered:
NostraMagister
changed the title
SDL_SetTextInputArea no longer available. SDL_SetTextInputRect
SDL_SetTextInputArea (in ImGui 1.90.9) no longer available >>> SDL_SetTextInputRect
Jul 7, 2024
Changelog says: 2024-07-01: Update for SDL3 api changes: SDL_SetTextInputRect() changed to SDL_SetTextInputArea().
IMO, it should be the reverse: SDL_SetTextInputArea changed to SDL_SetTextInputRect()
I checked the code again (JULY 11) and it still uses SDL_SetTextInputArea() in the current master and docking branch of 1.90.9.
If its me that do not understand it, just leave it because as I said in OP i changed it myself to SDL_SetTextInputRect() in the SDL3 backend and it all works.
Version/Branch of Dear ImGui:
Version 1.90.9 master
Back-ends:
imgui_impl_SDL3.cpp + imgui_impl_Vulkan.cpp
Compiler, OS:
Windows 11 MSVC, Linux GNU
Full config/build information:
Occurred with C/C++ MSVC 2022 (last update) and SDL version 3.1.2 (github master)
Details:
The
SDL_SetTextInputArea()
function that should be inSDL_keyboard.h
(according https://wiki.libsdl.org/SDL3/SDL_SetTextInputArea) seems no longer to be there.error C3861: 'SDL_SetTextInputArea': identifier not found
Occurs in
ImGui_ImplSDL3_PlatformSetImeData()
function, line 143:SDL_SetTextInputArea(window, &r, 0);
file: imgui_impl_sdl3.cpp
All other SDL functions compile.
I think this is an SDL ABI break (wanted, not by error).
The closest I could find to a replacement is
SDL_SetTextInputRect(window, &r);
(see https://wiki.libsdl.org/SDL3/SDL_SetTextInputRect)Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
Easily reproducible because the error is consistently there at the same line.
For confirmation, just remark the above mentioned line and everything builds fine.
The text was updated successfully, but these errors were encountered: