diff --git a/Cargo.toml b/Cargo.toml index 353042a6..c83e69a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "sdl2" description = "SDL2 bindings for Rust" repository = "https://github.com/AngryLawyer/rust-sdl2" documentation = "http://www.rust-ci.org/AngryLawyer/rust-sdl2/doc/sdl2/" -version = "0.9.1" +version = "0.10.0" license = "MIT" authors = [ "Tony Aldridge " ] keywords = ["SDL", "windowing", "graphics"] @@ -17,13 +17,13 @@ path = "src/sdl2/lib.rs" [dependencies] num = "0.1" bitflags = "0.3.2" -libc = "0.1" +libc = "0.2" rand = "0.3" [dependencies.sdl2-sys] path = "sdl2-sys" -version = "0.6.2" +version = "0.7.0" [features] diff --git a/README.md b/README.md index 2512cb02..b7a0f1eb 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ download through Crates.io: ```toml [dependencies] - sdl2 = "0.9" + sdl2 = "0.10" ``` Alternatively, pull it from GitHub diff --git a/examples/renderer-texture.rs b/examples/renderer-texture.rs index 2b92d3a0..851df850 100644 --- a/examples/renderer-texture.rs +++ b/examples/renderer-texture.rs @@ -20,8 +20,8 @@ pub fn main() { let mut texture = renderer.create_texture_streaming(PixelFormatEnum::RGB24, (256, 256)).unwrap(); // Create a red-green gradient texture.with_lock(None, |buffer: &mut [u8], pitch: usize| { - for y in (0..256) { - for x in (0..256) { + for y in 0..256 { + for x in 0..256 { let offset = y*pitch + x*3; buffer[offset + 0] = x as u8; buffer[offset + 1] = y as u8; diff --git a/sdl2-sys/Cargo.toml b/sdl2-sys/Cargo.toml index 800c9297..0133dbb2 100644 --- a/sdl2-sys/Cargo.toml +++ b/sdl2-sys/Cargo.toml @@ -3,7 +3,7 @@ name = "sdl2-sys" description = "Raw SDL2 bindings for Rust, used internally rust-sdl2" repository = "https://github.com/AngryLawyer/rust-sdl2" -version = "0.6.2" +version = "0.7.0" authors = ["Tony Aldridge "] license = "MIT" links = "SDL2" @@ -15,7 +15,7 @@ path = "src/lib.rs" [dependencies] num = "0.1" -libc = "0.1" +libc = "0.2.1" [build-dependencies.pkg-config] version = "0.3"