Skip to content

[rshapes] Fix DrawRectangleRoundedLines()#5992

Merged
raysan5 merged 2 commits into
raysan5:masterfrom
MatthewRoush:master
Jul 21, 2026
Merged

[rshapes] Fix DrawRectangleRoundedLines()#5992
raysan5 merged 2 commits into
raysan5:masterfrom
MatthewRoush:master

Conversation

@MatthewRoush

Copy link
Copy Markdown
Contributor

In #5980 a bug was introduced for DrawRectangleRoundedLines(). DrawRectangleRoundedLines() previously assumed that DrawRectangleRoundedLinesEx() uses RL_LINES when line thickness is 1 (which is no longer true, it now uses RL_QUADS or RL_TRIANGLES.)

I copy/pasted the previous DrawRectangleRoundedLinesEx() implementation and trimmed it down (since now the line thickness is always 1), so now DrawRectangleRoundedLines() uses RL_LINES. This makes it consistent with all other Draw*Lines() functions, which use RL_LINES.

In raysan5#5980 a bug was introduced for `DrawRectangleRoundedLines()`. `DrawRectangleRoundedLines()` previously assumed that `DrawRectangleRoundedLinesEx()` uses `RL_LINES` when line thickness is 1 (which is no longer true, it now uses `RL_QUADS` or `RL_TRIANGLES`.)

I copy/pasted the previous `DrawRectangleRoundedLinesEx()` implementation and trimmed it down (since now the line thickness is always 1), so now `DrawRectangleRoundedLines()` uses `RL_LINES`. This makes it consistent with all other `Draw*Lines()` functions, which use `RL_LINES`.
@raysan5
raysan5 merged commit 9fd4726 into raysan5:master Jul 21, 2026
@raysan5

raysan5 commented Jul 21, 2026

Copy link
Copy Markdown
Owner

@MatthewRoush thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants