Skip to content

[examples] Clarify srcrec_dstrec examples - #6401

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
Etevoldo:master
Nov 11, 2026
Merged

raysan5 merged 1 commit into
raysan5:masterfrom
Etevoldo:master

Conversation

@Etevoldo

Copy link
Copy Markdown
Contributor

It wasn't obvious why scarfy width was divided by 6 @ line 34

In addition, it is confusing to use the unscaled texture to get it's center point when it's supposed to be relative to the destination rectangle, so I changed it to use the destination rectangle members instead

It wasn't obvious why scarfy width was divided by 6 @ line 34
In addition, it is confusing to use the unscaled texture
to get it's center point when it's supposed to be relative
to the destination rectangle, so I changed it to use the
destination rectangle members instead
@Etevoldo Etevoldo changed the title Clarify srcrec_dstrec examples [examples] Clarify srcrec_dstrec examples Nov 10, 2026
@raysan5
raysan5 merged commit d670416 into raysan5:master Nov 11, 2026
@raysan5

raysan5 commented Nov 11, 2026

Copy link
Copy Markdown
Owner

@Etevoldo thanks for the review, I'm re-reviewing it on my side to better clarify some parts

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