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

Add SdlSurface.ensureRgba32Format #506

Merged
merged 2 commits into from
Jul 6, 2024
Merged

Conversation

JD557
Copy link
Owner

@JD557 JD557 commented Jul 6, 2024

Adds a helper function SdlSurface.ensureRgba32Format to convert an SDL_Surface to the expected format.

Also cleaned up the scaladoc a bit to make things more clear.

Related to #504. I wouldn't say this fixes the issue, as I think there are better ways to enforce that the surface is always valid, but those would require some big breaking changes that would be probably better suited for a 0.7.x.

@JD557 JD557 added this to the 0.6.1 milestone Jul 6, 2024
@JD557 JD557 self-assigned this Jul 6, 2024
@JD557 JD557 merged commit 9378136 into master Jul 6, 2024
15 checks passed
@JD557 JD557 deleted the better-sdl-format-support branch July 6, 2024 22:10
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.

1 participant