Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rshapes] Make sure DrawRectangleLinesEx accounts for square tiles #4382

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

Joshalosh
Copy link
Contributor

Currently when the thickness is greater than the width or the height a comparison between the rec.width and rec.height is made. The line thickness then becomes half of whatever is smaller. At the moment this doesn't account for if the rec.width and rec.height are equal. Which could potentially be pretty common for people making tile-based games. ( I accidentally ran into this )

@Joshalosh Joshalosh changed the title Make sure DrawRectangleLinesEx accounts for square tiles [[rshapes] Make sure DrawRectangleLinesEx accounts for square tiles Oct 14, 2024
@Joshalosh Joshalosh changed the title [[rshapes] Make sure DrawRectangleLinesEx accounts for square tiles [rshapes] Make sure DrawRectangleLinesEx accounts for square tiles Oct 14, 2024
@raysan5 raysan5 merged commit c9c830c into raysan5:master Oct 15, 2024
@raysan5
Copy link
Owner

raysan5 commented Oct 15, 2024

@Joshalosh oh! Good catch! Thanks for the review!

@Joshalosh
Copy link
Contributor Author

You're very welcome :)

psxdev pushed a commit to raylib4Consoles/raylib that referenced this pull request Nov 18, 2024
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