Skip to content

Commit

Permalink
Update changelog, prepare for 0.36
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobrand committed Nov 22, 2023
1 parent e443428 commit 41f9ac5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <tony@angry-lawyer.com>", "Cobrand <cobrandw@gmail.com>"]
keywords = ["SDL", "windowing", "graphics", "api", "engine"]
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"]

Expand All @@ -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
Expand All @@ -377,7 +377,7 @@ adding this instead:

```toml
[dependencies.sdl2]
version = "0.35"
version = "0.36"
default-features = false
features = ["ttf","image","gfx","mixer"]
```
Expand Down
13 changes: 11 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sdl2-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <tony@angry-lawyer.com>"]
keywords = ["SDL", "windowing", "graphics", "ffi"]
categories = ["rendering","external-ffi-bindings","game-engines","multimedia"]
Expand Down
4 changes: 2 additions & 2 deletions src/sdl2/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1561,10 +1561,10 @@ impl Window {
pub fn set_window_shape_alpha<S: AsRef<SurfaceRef>>(
&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)
Expand Down

0 comments on commit 41f9ac5

Please sign in to comment.