Skip to content

Change GetColor to take unsigned int #1954

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

Merged
merged 1 commit into from
Aug 26, 2021
Merged

Change GetColor to take unsigned int #1954

merged 1 commit into from
Aug 26, 2021

Conversation

electronstudio
Copy link
Contributor

This fixes a problem in the auto generated Python binding where the user has to convert the int to unsigned manually in order to use GetColor. I can just patch it in the binding, but I figured if it might be worth changing upstream if it makes sense. I don't know enough about Raylib/C to know if this is a good idea or whether there is a reason to prefer signed ints!

@raysan5
Copy link
Owner

raysan5 commented Aug 26, 2021

@electronstudio Actually I can't remember if there was some reason why I kept the signed int... anyway, I'm merging it.

@raysan5 raysan5 merged commit cac8561 into raysan5:master Aug 26, 2021
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