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

Made get/set_swap_interval take and return an enum instead of i32 #684

Merged
merged 2 commits into from
Jul 14, 2017

Conversation

icefoxen
Copy link
Contributor

Pretty simple!

@Cobrand
Copy link
Member

Cobrand commented Jul 11, 2017

Thanks! Do you know if code using i32 breaks with this patch? If it doesn't, perfect, but if it does, a simple solution would be to accept Into<SwapInterval> for set_swap_interval and implement From<i32> for SwapInterval.

@icefoxen
Copy link
Contributor Author

I'm not sure what you mean by "code using i32", but this is a public API change.

However, accepting Into and implementing From are good ideas. I'll add those.

@Cobrand Cobrand merged commit 7ebf5fe into Rust-SDL2:master Jul 14, 2017
@prail
Copy link

prail commented Jul 25, 2017

@icefoxen He most likely meant code that already used the previous version of the api. :)

kovaxis pushed a commit to kovaxis/rust-sdl2 that referenced this pull request Oct 12, 2017
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.

3 participants