From dfedd534ac12aff7b7776f83de5ce02d2f01fde3 Mon Sep 17 00:00:00 2001 From: Noiob Date: Sun, 19 Nov 2017 03:31:53 +0100 Subject: [PATCH] Add PR "focus_lost to focus_loss" to changelog --- changelog.md | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/changelog.md b/changelog.md index 9a3f9904da8..2b25eaa1b35 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,12 @@ 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. +### v0.32 + +[PR #279](https://github.com/Rust-SDL2/rust-sdl2/pull/729) + +* **Breaking change** set\_video\_minimize\_on\_focus\_lost was renamed to …minimize\_on\_focus\_loss, as it should be. As a bonus, it works now. + ### v0.31 [PR #693](https://github.com/Rust-SDL2/rust-sdl2/pull/693), [PR #720](https://github.com/Rust-SDL2/rust-sdl2/pull/720) @@ -14,9 +20,9 @@ when upgrading from a version of rust-sdl2 to another. [PR #695](https://github.com/Rust-sdl2/rust-sdl2/pull/695) * sdl2-sys can now be generated at compile time by bindgen (Opt-in required -with "use-bindgen" feature) + with "use-bindgen" feature) * The new sdl2-sys source code is generated by bindgen, hence **almost everything -that uses sdl2-sys will be broken**. The fixes are small but still preset. + that uses sdl2-sys will be broken**. The fixes are small but still preset. [PR #673](https://github.com/Rust-sdl2/rust-sdl2/pull/673) @@ -26,22 +32,22 @@ that uses sdl2-sys will be broken**. The fixes are small but still preset. * **Breaking change** Make get\_swap\_interval return an enum instead of i32 * The signature of set\_swap\_interval has been changed as well, but it shouldn't -breaking existing code too much. + breaking existing code too much. [PR #683](https://github.com/Rust-sdl2/rust-sdl2/pull/684) * Adds the `unsafe_textures` feature to this crate, allowing to get rid of the lifetimes -in `Texture`s in the `render` module. + in `Texture`s in the `render` module. [PR #704](https://github.com/Rust-SDL2/rust-sdl2/pull/704) * Adds the `Music::from_static_bytes` function, which creates a Music instance with the -static lifetime from a buffer that also has a static lifetime. + static lifetime from a buffer that also has a static lifetime. [PR #708](https://github.com/Rust-SDL2/rust-sdl2/pull/708) * Makes the fields of the `sdl2::mixer::Channel(i32)` and `sdl::mixer::Group(i32)` structs -public so they can be instantiated directly, and deprecates `sdl2::mixer::channel(i32)`. + public so they can be instantiated directly, and deprecates `sdl2::mixer::channel(i32)`. [PR #714](https://github.com/Rust-SDL2/rust-sdl2/pull/714) @@ -65,18 +71,18 @@ pay for soundness and runtime safety. * `Renderer` has been renamed and split into `Canvas` and `TextureCreator`. * `Canvas` can store a `Surface` or a `Window`, and can be used to render into these as well. -`TextureCreator` creates `Texture`s and is used by Texture to make sure they don't live -longer than expected. + `TextureCreator` creates `Texture`s and is used by Texture to make sure they don't live + longer than expected. * `set_render_target` has been removed and has been replaced with `Canvas::with_texture_canvas` -and `Canvas::with_multiple_texture_canvas` + and `Canvas::with_multiple_texture_canvas` * Deleted `WindowRef`, it wasn't useful anymore. Other Changes: * Added `PixelFormatEnum::supports_alpha(&self) -> bool` method. * A single Game Of Life example has been added to show the basic capabilities of the new `Canvas` -and `TextureCreator` structs, as well as adding a very basic game to show how to handle input / game -changes in a basic game. + and `TextureCreator` structs, as well as adding a very basic game to show how to handle input / game + changes in a basic game. You won't have to worry about what target your `Renderer` has at runtime anymore, everything is done at compile time now !