Skip to content

[examples] fix y-offset casting#5556

Merged
raysan5 merged 1 commit intoraysan5:masterfrom
CrackedPixel:examples-fix-colourspalette
Feb 14, 2026
Merged

[examples] fix y-offset casting#5556
raysan5 merged 1 commit intoraysan5:masterfrom
CrackedPixel:examples-fix-colourspalette

Conversation

@CrackedPixel
Copy link
Contributor

In the original the float cast makes it shift slightly:

image

changing the cast to int solves the issue and matches the desired result:
image

@raysan5 raysan5 merged commit b210d16 into raysan5:master Feb 14, 2026
17 checks passed
@CrackedPixel CrackedPixel deleted the examples-fix-colourspalette branch February 16, 2026 00:37
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