Skip to content

Missing SDL_RenderSetIntegerScale method #1110

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

Open
Funkschy opened this issue May 14, 2021 · 1 comment
Open

Missing SDL_RenderSetIntegerScale method #1110

Funkschy opened this issue May 14, 2021 · 1 comment

Comments

@Funkschy
Copy link

Hi,
I noticed, that rust-sdl2 provides an implementation for SDL_RenderSetLogicalSize, but not for SDL_RenderSetIntegerScale.
Is this on purpose and if yes, how can I use resolution independent rendering with rust-sdl2?

@Funkschy
Copy link
Author

This works for now, so this isn't urgent

    unsafe {
        sdl2::sys::SDL_RenderSetIntegerScale(canvas.raw(), sdl2::sys::SDL_bool::SDL_TRUE);
    }

However, since this should be a very easy fix, I hope this can be implemented in the future :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants