Skip to content

[rshapes] Fix DrawRectangleRoundedLinesEx not scaling with transform when thick=1#5980

Open
SamaelHeaven wants to merge 1 commit into
raysan5:masterfrom
SamaelHeaven:fix/DrawRectangleRoundedLinesEx
Open

[rshapes] Fix DrawRectangleRoundedLinesEx not scaling with transform when thick=1#5980
SamaelHeaven wants to merge 1 commit into
raysan5:masterfrom
SamaelHeaven:fix/DrawRectangleRoundedLinesEx

Conversation

@SamaelHeaven

Copy link
Copy Markdown

In the DrawRectangleRoundedLinesEx function, if the line thickness is <= 1, it uses RL_LINES to draw the lines, otherwise, it uses quads. However, this makes the two behave differently, if we multiply the matrix by a scale or zoom via a camera, RL_LINES stays the same size, whereas the quads are scaled properly.

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.

1 participant