From 41f9ac5fa2bbac81d2cd7949775daed3900e3849 Mon Sep 17 00:00:00 2001 From: Cobrand Date: Wed, 22 Nov 2023 18:59:28 +0100 Subject: [PATCH] Update changelog, prepare for 0.36 --- Cargo.toml | 4 ++-- README.md | 8 ++++---- changelog.md | 13 +++++++++++-- sdl2-sys/Cargo.toml | 2 +- src/sdl2/video.rs | 4 ++-- 5 files changed, 20 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2863a988c1..3d666e2399 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "sdl2" description = "SDL2 bindings for Rust" repository = "https://github.com/Rust-SDL2/rust-sdl2" documentation = "https://rust-sdl2.github.io/rust-sdl2/sdl2/" -version = "0.35.2" +version = "0.36.0" license = "MIT" authors = [ "Tony Aldridge ", "Cobrand "] keywords = ["SDL", "windowing", "graphics", "api", "engine"] @@ -22,7 +22,7 @@ lazy_static = "1.4.0" [dependencies.sdl2-sys] path = "sdl2-sys" -version = "^0.35.2" +version = "^0.36.0" [dependencies.c_vec] # allow both 1.* and 2.0 versions diff --git a/README.md b/README.md index 00761fec9a..5c2a0deaf7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Bindings for SDL2 in Rust -### [Changelog for 0.35.0](changelog.md#v0350) +### [Changelog for 0.36.0](changelog.md#v0360) # Overview @@ -334,7 +334,7 @@ add the following your `Cargo.toml`: ```toml [dependencies.sdl2] -version = "0.35" +version = "0.36" default-features = false features = ["ttf","image","gfx","mixer","static-link","use-vcpkg"] @@ -356,7 +356,7 @@ download through Crates.io: ```toml [dependencies] - sdl2 = "0.35" + sdl2 = "0.36" ``` Alternatively, pull it from GitHub to obtain the latest version from master @@ -377,7 +377,7 @@ adding this instead: ```toml [dependencies.sdl2] - version = "0.35" + version = "0.36" default-features = false features = ["ttf","image","gfx","mixer"] ``` diff --git a/changelog.md b/changelog.md index c9dafcb889..2d28c64293 100644 --- a/changelog.md +++ b/changelog.md @@ -1,11 +1,14 @@ In this file will be listed the changes, especially the breaking ones that one should be careful of when upgrading from a version of rust-sdl2 to another. -### Unreleased +### v0.36.0 [PR #1270](https://github.com/Rust-SDL2/rust-sdl2/pull/1270) **BREAKING CHANGE** Remove &mut self requirement in `TimerSubsystem::delay`; Add `TimerSubsystem::ticks64` -[PR #1225](https://github.com/Rust-SDL2/rust-sdl2/pull/1225) Update wgpu to 0.12 and fix raw-window-handle-with-wgpu example +[PR #1275](https://github.com/Rust-SDL2/rust-sdl2/pull/1275) **BREAKING CHANGE** Update raw-window-handle to 0.5 + +[PR #1225](https://github.com/Rust-SDL2/rust-sdl2/pull/1225) Update wgpu to 0.12 in examples + [PR #1250](https://github.com/Rust-SDL2/rust-sdl2/pull/1250) Add `lib64` to native library search path when using bundled feature [PR #1240](https://github.com/Rust-SDL2/rust-sdl2/pull/1240) **BREAKING CHANGE** Take `PixelMasks` by refrence @@ -20,6 +23,12 @@ when upgrading from a version of rust-sdl2 to another. [PR #1337](https://github.com/Rust-SDL2/rust-sdl2/pull/1337) Fix "Cannot initialize Sdl from more than one thread" for tests / CI +[PR #1337](https://github.com/Rust-SDL2/rust-sdl2/pull/1337) Fix "Cannot initialize Sdl from more than one thread" for tests / CI + +[PR #1346](https://github.com/Rust-SDL2/rust-sdl2/pull/1346) Add basic Shaped Window support + +[PR #1314](https://github.com/Rust-SDL2/rust-sdl2/pull/1314) Add "ALWAYS ON TOP" support for X11 + ### v0.35.2 [PR #1173](https://github.com/Rust-SDL2/rust-sdl2/pull/1173) Fix segfault when using timer callbacks diff --git a/sdl2-sys/Cargo.toml b/sdl2-sys/Cargo.toml index abc63fc74d..47b24d35f2 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/rust-sdl2/rust-sdl2" -version = "0.35.2" +version = "0.36.0" authors = ["Tony Aldridge "] keywords = ["SDL", "windowing", "graphics", "ffi"] categories = ["rendering","external-ffi-bindings","game-engines","multimedia"] diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index 1898b422cf..329d5122ae 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -1561,10 +1561,10 @@ impl Window { pub fn set_window_shape_alpha>( &mut self, shape: S, - binarizationCutoff: u8, + binarization_cutoff: u8, ) -> Result<(), i32> { let mode = sys::WindowShapeMode::ShapeModeBinarizeAlpha; - let parameters = sys::SDL_WindowShapeParams { binarizationCutoff }; + let parameters = sys::SDL_WindowShapeParams { binarizationCutoff: binarization_cutoff }; let mut shape_mode = sys::SDL_WindowShapeMode { mode, parameters }; let result = unsafe { sys::SDL_SetWindowShape(self.context.raw, shape.as_ref().raw(), &mut shape_mode)