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

Feature/smoothscale #14

Merged
merged 5 commits into from
Jun 15, 2015
Merged

Feature/smoothscale #14

merged 5 commits into from
Jun 15, 2015

Conversation

drnlm
Copy link
Member

@drnlm drnlm commented Jun 13, 2015

This implements transform.smoothscale, using the C-only generic implementation.

This doesn't attempt to duplicate the optimised MMX and SSE implementations pygame provides as they give slightly different visual results and the complexity doesn't seem worth it for something so x86 specific.

This should be enough to close issue #7


bpp = c_surf.format.BytesPerPixel
if bpp < 3 or bpp > 4:
raise ValueError("Only 24-bit or 32-bit surfaces can be"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking whether we should we be throwing an SDLError here?

And a similar question for other places where we raise ValueError.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pygame throws ValueError in it's version, so we're just matching behaviour here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hodgestar
Copy link
Member

Left a few comments, otherwise looks good.

@drnlm
Copy link
Member Author

drnlm commented Jun 15, 2015

Comments addressed. Ready for another review.

@hodgestar
Copy link
Member

@drnlm Can you merge in develop?

@hodgestar
Copy link
Member

👍

drnlm added a commit that referenced this pull request Jun 15, 2015
Implement GENERIC smoothscale backend
@drnlm drnlm merged commit e4dfa53 into master Jun 15, 2015
@drnlm drnlm deleted the feature/smoothscale branch June 15, 2015 11:42
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