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

zero pitch breaks blits #7143

Closed
JWStaiert opened this issue Jan 25, 2023 · 3 comments
Closed

zero pitch breaks blits #7143

JWStaiert opened this issue Jan 25, 2023 · 3 comments

Comments

@JWStaiert
Copy link

Various Blit functions depend on surface pitch being non-zero.

@slouken
Copy link
Collaborator

slouken commented Jan 25, 2023

That's fine. SDL will not create surfaces with 0 pitch and applications shouldn't either, unless they are doing something special with them.

@slouken slouken closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2023
@JWStaiert
Copy link
Author

JWStaiert commented Jan 25, 2023

.

@slouken slouken reopened this Jan 25, 2023
@slouken
Copy link
Collaborator

slouken commented Jan 25, 2023

I added validation to make sure you're not passing in 0 pitch when you're passing in valid pixels.

Thanks!

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

No branches or pull requests

2 participants