OpenRCT2 / OpenRCT2/OpenRCT2

Split gfx_wrap_string that calculates the dimensions

Open
#8,568 29 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.