Giter VIP home page Giter VIP logo

Comments (3)

ocornut avatar ocornut commented on August 16, 2024

Hello,
This is already fixed in latest:
ccf3ee6

from imgui.

NostraMagister avatar NostraMagister commented on August 16, 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.

grtz

from imgui.

ocornut avatar ocornut commented on August 16, 2024

The function in SDL3 latest is called SDL_SetTextInputArea() and the code in imgui latest calls SDL_SetTextInputArea().

https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_sdl3.cpp

There is no SDL_SetTextInputRect() currently in SDL3.
SDL3 is a fast moving and instable target, if you use it you must use latest.

https://github.com/libsdl-org/SDL/blob/875c4f0a4ce2003ee64db6218526664fb718d618/docs/README-migration.md?plain=1#L922
* SDL_SetTextInputRect() - replaced with SDL_SetTextInputArea()

from imgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.