Rust-SDL2 / rust-sdl2

SDL2 bindings for Rust
MIT License
2.74k stars 468 forks source link

Missing SDL_RenderSetIntegerScale method #1110

Open Funkschy opened 3 years ago

Funkschy commented 3 years ago

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 commented 3 years ago

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 :)