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

Update SDLRenderer backend to compile with SDL 2.0.19 #4819

Closed
wants to merge 1 commit into from
Closed

Update SDLRenderer backend to compile with SDL 2.0.19 #4819

wants to merge 1 commit into from

Conversation

sridenour
Copy link
Contributor

In SDL 2.0.19 the SDL Renderer function SDL_RenderGeometryRaw() was changed from taking an int pointer for color to an SDL_Color pointer. Doesn't cause too much of a problem since bytewise they're both RGBA, just need to change the pointer casts and add a preprocessor guard so it won't break for people using SDL 2.0.18 (the latest stable version).

@sridenour
Copy link
Contributor Author

This also affects the master branch. If it's better that I submit this against master instead then let me know and I will.

ocornut pushed a commit that referenced this pull request Dec 21, 2021
@ocornut
Copy link
Owner

ocornut commented Dec 21, 2021

Merged (with minor coding style fixes), thank you @sridenour !

@ocornut ocornut closed this Dec 21, 2021
@sridenour sridenour deleted the docking branch December 21, 2021 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants