Split gfx_wrap_string that calculates the dimensions
Open
Nobody has claimed this yet.
good-first-issue
refactor
- Dominant language
- C++
- Stars
- 16.2k
- Forks
- 1.9k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 80
Description
It is primarily used to to calculate the height of the text input and currently modifies the buffer which the caller must provide. This can be done without modifying the buffer and avoiding a lot of string copying in most of the UI code which should also provide a minor performance improvement.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate gfx_wrap_string and inspect its callers, especially the code that calculates text-input height. Determine how the function currently modifies and copies the buffer, then verify that the split behavior preserves dimensions and UI rendering without mutating caller-provided text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100