You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevent users from creating Sdl2TtfContext out of nothing and use SDL's reference counting init/quit (#1437)
* prevent users from creating `Sdl2TtfContext` out of nothing
and various other changes, including:
- allow multiple `ttf::init` calls, the same way it works with TTF_Init
- return last sdl error instead of I/O error (like stale pr #1348, fixes#1347 and closes#1348)
- implement `Clone` for `Sdl2TtfContext`, SDL C code will do the reference counting
- make `ttf::font::internal_*` `pub(super)`
- make `ttf::font::Font::raw` safe (obtaining a raw pointer is safe, using it is unsafe)
* remove `InitError` because only one variant was used
* update changelog
Copy file name to clipboardExpand all lines: changelog.md
+2
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ when upgrading from a version of rust-sdl2 to another.
3
3
4
4
### Next
5
5
6
+
[PR #1437](https://github.com/Rust-SDL2/rust-sdl2/pull/1437)**BREAKING CHANGE** Prevent users from creating `Sdl2TtfContext` out of nothing and use SDL's reference counting init/quit
7
+
6
8
[PR #1464](https://github.com/Rust-SDL2/rust-sdl2/pull/1464) Added binding for `Mix_OpenAudioDevice`
7
9
8
10
[PR #1451](https://github.com/Rust-SDL2/rust-sdl2/pull/1451) Add `gamma_ramp_arrays` and `calculate_gamma_ramp`.
0 commit comments