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

Improve src_rect handling in sprites, and especially the wave effect #147

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

WaywardHeart
Copy link

This lets us properly handle src_rects that extend beyond the bounds of the bitmap. I doubt it's used much if it all in the wild, but I'm making use of it for my next PR...

Also, apparently the wave effect wasn't using src_rect's position at all. I'm amazed it took this long to get noticed.

…too-large dimensions.

I also fixed a small bug in how the wave position was calculated.

I ALSO fixed src_rects in general for waves. (How was that not noticed before now?)
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.

None yet

1 participant